Skip to main content

Simple wrapper for the Mediawiki API

Project description

# MediaWiki API

This MIT Licensed library provides a very simple convenience wrapper around the [MediaWiki API](http://www.mediawiki.org/wiki/API). and includes support for authenticated sessions.

See http://pythonhosted.org/mwapi for complete documentation.

## Example usage

>>> import mwapi
>>>
>>> session = mwapi.Session('https://en.wikipedia.org')
>>>
>>> print(session.get(action='query', meta='userinfo'))
{'query': {'userinfo': {'anon': '', 'name': '75.72.203.28', '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 – https://github.com/yuvipanda * Aaron Halfaker – https://github.com/halfak

Project details


Download files

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

Source Distributions

mwapi-0.3.0.zip (7.7 kB view details)

Uploaded Source

mwapi-0.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

mwapi-0.3.0-py3.4.egg (10.7 kB view details)

Uploaded Source

File details

Details for the file mwapi-0.3.0.zip.

File metadata

  • Download URL: mwapi-0.3.0.zip
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mwapi-0.3.0.zip
Algorithm Hash digest
SHA256 f5d7ba9e65ca293a97bcddcce5eac7ce3433cc6ab8e10353b0ccd899ed52ecfb
MD5 9f7d3cb49431f181b2e6a2724998126c
BLAKE2b-256 d008efb09a01fb1a7311188bdb433ba7c6c5748c5f90b267de3ad21dd2659b7b

See more details on using hashes here.

File details

Details for the file mwapi-0.3.0.tar.gz.

File metadata

  • Download URL: mwapi-0.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mwapi-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4c930953625492844087a6bce6fe0167905f86212205d55e170905511ae41155
MD5 d570ab0806fc6824ed5577fa1e9eea27
BLAKE2b-256 c81a500f21be42292380e2287731adff95a13ad8194e57b52266d4bdf2dea053

See more details on using hashes here.

File details

Details for the file mwapi-0.3.0-py3.4.egg.

File metadata

  • Download URL: mwapi-0.3.0-py3.4.egg
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.8.10

File hashes

Hashes for mwapi-0.3.0-py3.4.egg
Algorithm Hash digest
SHA256 3d68a9db94bdf10ef6f3064c4e1784abe25f94984e831f32d1bc56c41a2be46d
MD5 a170f418269d73806aaadcb5e42d6f80
BLAKE2b-256 50a9aa122425d9e50a66b5ee376d7765767aae9d25ae76c1b399688cba36338d

See more details on using hashes here.

Supported by

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