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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mwpy-0.3.tar.gz | 5.6 kB | Without provenance | Details for mwpy-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mwpy-0.3-py3-none-any.whl | Python 3 | none | any | Details for mwpy-0.3-py3-none-any.whl |
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
|
Security for mwpy 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.