[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#886826: ITP: mwclient - MediaWiki API client in Python



Package: wnpp
Severity: wishlist
Owner: "Hans-Christoph Steiner" <hans@eds.org>

* Package name    : mwclient
  Version         : git
  Upstream Author : Bryan Tong Minh, Dan Michael O. Heggø, and others
* URL             : https://github.com/mwclient/mwclient
* License         : EXPAT
  Programming Lang: Python
  Package source  :
https://anonscm.debian.org/cgit/python-modules/packages/mwclient.git
  Description: 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.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: