Skip to main content
https://badge.fury.io/py/mwpy.svg https://travis-ci.org/5j9/mwpy.svg?branch=master https://codecov.io/gh/5j9/mwpy/branch/master/graph/badge.svg

mwpy is an async Python client for MediaWiki API. It’s built on top of asks and trio!

Installation

mwpy development is done using Python 3.8 (because of the nice new async features of it) but theoretically the library should be Python 3.6+ compatible. Hopefully there will be more solid support for 3.6+ as soon as unittest and mock backports become available.

pip install mwpy

Notable features

  • Supports setting a custom User-Agent header for each API instance.

  • Handles query continuations.

  • Handles batchcomplete signals for prop queries and yeilds the results as soon as a batch is complete.

  • Configurable maxlag. Waits as the API recommends and then retries.

  • Some convenient methods for accessing common API calls, e.g. for recentchanges, login, and siteinfo.

  • Lightweight. mwpy is a thin wrapper. Method signatures are very similar to the parameters in an actual API URL. You can consult MediaWiki’s documentation if in doubt about what a parameter does.

Metadata

Release files for mwpy 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mwpy 0.3
File Size Uploaded
mwpy-0.3.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mwpy 0.3
File Interpreter ABI Platform
mwpy-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / mwpy-0.3.tar.gz

Download URL mwpy-0.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6edc82c9f2ebfcb6da883f7c513d1d1877333591cd112f3426a90561569b0ca7
BLAKE2b-256 checksum
How to use checksums
f5785879125cd998b24bebafc7051070c35350744d14963dde04820156471dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.8.0b4

Release files / mwpy-0.3-py3-none-any.whl

Download URL mwpy-0.3-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81adf1cf09f32dd8e2b1b0fd2d80ddc372112be2b99266b809fd36ebb8d40f74
BLAKE2b-256 checksum
How to use checksums
322923927017860770db12bf5bf13b0761cf23a6d2097601309486ce56d562e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.8.0b4

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page