Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

MediaWiki API client

Project description

mwclient logo


Build Status License: MIT

Test Coverage Latest Version Python Version Doc Status

mwklient (forked from mwclient v0.9.3) is a lightweight Python client library to the MediaWiki API which provides access to most API functionality. It works with Python 3.5+ and supports MediaWiki API 1.16+, for functions not available in the current MediaWiki, a MediaWikiVersionError is raised.

mwklient vs mwclient

The original project mwclient is still active and supports Python 2.7 too. mwklient is forked from the version 0.9.3 of mwclient and wraps some more api_calls (see next section). Moreover, it will support default error handlers for the most common calls (more details in next commits). Finally, it has a MIT license as well as the original mwclient.

List of new methods

  • page.undo(), revert a given edit page


The current stable version 0.1.0 is available through PyPI:

$ pip install mwklient


Up-to-date documentation is hosted at Read the Docs. It includes a user guide to get started using mwclient, a reference guide, implementation and development notes.


Patches and PR are welcome! Consider also contributing to the original repo. The current development version can be easily installed from GitHub, simply cloning the repo:

$ pip install git+git://

In order to test your edits, build an editable version with the command:

$ pip install -e .

Finally, if you want to run tests, do

$ python test

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mwklient, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size mwklient-0.1.0-py2.py3-none-any.whl (32.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mwklient-0.1.0.tar.gz (36.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page