Skip to main content

An async MediaWiki client using trio and asks.

Project description

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

You’ll need Python 3.6+.

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.

Project details


Download files

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

Source Distribution

mwpy-0.2.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

mwpy-0.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

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