Skip to main content

MediaWiki API client

Project description

mwclient logo

mwklient

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

Installation

The current stable version 0.1.0 is available through PyPI:

$ pip install mwklient

Documentation

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.

Contributing

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://github.com/lrusso96/mwklient.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 setup.py test

Project details


Download files

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

Source Distribution

mwklient-0.1.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

mwklient-0.1.0-py2.py3-none-any.whl (32.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mwklient-0.1.0.tar.gz.

File metadata

  • Download URL: mwklient-0.1.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for mwklient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1c1ec358aaf144917aa70d68e75559434f5bf48f688113a8c760714d1d13208
MD5 18fbb7ed5ba5feec845adf1780ca2b52
BLAKE2b-256 5170c38f94d56aee8e7b382292d2e64736f9f760899bc6dd77d9d5708a57281b

See more details on using hashes here.

File details

Details for the file mwklient-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mwklient-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for mwklient-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93fc3cf0ae6ba40ed539bb3bd6ab749d5dea1fc22614a49bd8094af69c60a485
MD5 868b89fccd68d30caffcfb5331c62c52
BLAKE2b-256 66acadf98deb4ede7cbd715881a0bfdb9cb6fbe0f15370aff5fd7734bf53f30b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page