Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Simple wrapper for the Mediawiki API

Project description

# MediaWiki API

This MIT Licensed library provides a very simple convenience wrapper around the [MediaWiki API]( and includes support for authenticated sessions. It requires Python 3 and that your wiki is using MediaWiki 1.15.3 or greater.

## Example

>>> import mwapi
>>> session = mwapi.Session('')
>>> print(session.get(action='query', meta='userinfo'))
{'query': {'userinfo': {'anon': '', 'name': '', 'id': 0}},
 'batchcomplete': ''}
>>> print(session.get(action='query', prop='revisions', revids=32423425))
{'query': {'pages': {'1429626': {'ns': 0, 'revisions': [{'user':
 'Wknight94', 'parentid': 32276615, 'comment':
 '/* References */ Removing less-specific cat', 'revid': 32423425,
 'timestamp': '2005-12-23T00:07:17Z'}], 'title': 'Grigol Ordzhonikidze',
 'pageid': 1429626}}}, 'batchcomplete': ''}

## Authors * YuviPanda – * Aaron Halfaker –

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
mwapi-0.5.1-py2.py3-none-any.whl (10.6 kB) Copy SHA256 hash SHA256 Wheel 3.5 Dec 14, 2016
mwapi-0.5.1.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None Dec 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page