A thin MediaWiki client using requests.
Project description
Another personal pet project of mine. It requires Python 3.9+!
Installation
pip install pymw
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. pymw 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.