Skip to content
Snippets Groups Projects
  • Dan Michael O. Heggø's avatar
    61155f1b
    [#51] Rename Page.edit() to Page.text() · 61155f1b
    Dan Michael O. Heggø authored
    since the method does not edit the page, but returns the text of the
    page. The old method name still works, but issues a DeprecationWarning.
    Note that DeprecationWarnings are silent by default, so we might
    consider to elevate it in some future version.
    61155f1b
    History
    [#51] Rename Page.edit() to Page.text()
    Dan Michael O. Heggø authored
    since the method does not edit the page, but returns the text of the
    page. The old method name still works, but issues a DeprecationWarning.
    Note that DeprecationWarnings are silent by default, so we might
    consider to elevate it in some future version.
README.rst 3.79 KiB

mwclient

mwclient is a Python client to the MediaWiki API which provides access to most API functionality. It requires Python 2.6 or 2.7 (Python 3.x support planned) and supports MediaWiki 1.16 and above. For functions not available in the current MediaWiki, a MediaWikiVersionError is raised.

This framework was written by Bryan Tong Minh, who released the latest stable version 0.6.5 on 6 May 2011. Version 0.6.5 is also available through PyPI:

$ pip install mwclient

Note that 0.6.5 might not work with the latest MediaWiki versions. The current development version can be installed directly off github:

$ pip install git+git://github.com/mwclient/mwclient.git

Please see the release notes for a list of changes.

Contributing

mwclient ships with a test suite based on pytest. Only a small part of mwclient is currently tested, but hopefully coverage will improve in the future.