Skip to content
Sections
>> Trisquel >> Packages >> aramo >> python >> python3-mwclient
etiona  ] [  nabia  ] [  aramo  ]
[ Source: mwclient  ]

Package: python3-mwclient (0.10.1-2)

MediaWiki API client in Python

mwclient is a lightweight Python client library to the MediaWiki API which provides access to most API functionality. It works with Python 2.7, 3.3 and above, and supports MediaWiki 1.16 and above. For functions not available in the current MediaWiki, a MediaWikiVersionError is raised.

Most properties and generators accept the same parameters as the API, without their two-letter prefix. Exceptions to this rule:

 * Image.imageinfo is the imageinfo of the latest image. Earlier
   versions can be fetched using imagehistory()
 * Site.all*: parameter  [ap]from renamed to start
 * categorymembers is implemented as Category.members
 * deletedrevs is deletedrevisions
 * usercontribs is usercontributions
 * First parameters of search and usercontributions are search and
   user respectively

Properties and generators are implemented as Python generators. Their limit parameter is only an indication of the number of items in one chunk. It is not the total limit. Doing list(generator(limit = limit)) will return ALL items of generator, and not be limited by the limit value. Default chunk size is generally the maximum chunk size.

Other Packages Related to python3-mwclient

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-requests-oauthlib
    module providing OAuthlib auth support for requests (Python 3)
  • dep: python3-six
    Python 2 and 3 compatibility library (Python 3 interface)

Download python3-mwclient

Download for all available architectures
Architecture Package Size Installed Size Files
all 24.2 kB112 kB [list of files]