{"id":15134721,"url":"https://github.com/5j9/mwpy","last_synced_at":"2025-09-29T03:30:47.670Z","repository":{"id":57444274,"uuid":"207249870","full_name":"5j9/mwpy","owner":"5j9","description":"An async MediaWiki client using trio and asks.","archived":true,"fork":false,"pushed_at":"2020-06-27T07:53:12.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T01:12:04.346Z","etag":null,"topics":["asks","mediawiki-api","python","trio"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/5j9.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-09T07:26:31.000Z","updated_at":"2023-01-28T13:56:50.000Z","dependencies_parsed_at":"2022-09-13T02:32:26.723Z","dependency_job_id":null,"html_url":"https://github.com/5j9/mwpy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fmwpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fmwpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fmwpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fmwpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5j9","download_url":"https://codeload.github.com/5j9/mwpy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234583683,"owners_count":18856280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asks","mediawiki-api","python","trio"],"created_at":"2024-09-26T05:23:58.190Z","updated_at":"2025-09-29T03:30:47.370Z","avatar_url":"https://github.com/5j9.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://badge.fury.io/py/mwpy.svg\n    :target: https://badge.fury.io/py/mwpy\n.. image:: https://travis-ci.org/5j9/mwpy.svg?branch=master\n    :target: https://travis-ci.org/5j9/mwpy\n.. image:: https://codecov.io/gh/5j9/mwpy/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/5j9/mwpy\n\nThis is a personal pet project.\nAn ``async`` Python_ client for MediaWiki_ API built on top of asks_ and trio_!\nCurrently this project is abandoned in favour of pymw_, a synchronous fork of this project that uses requests.\n\nInstallation\n------------\n``mwpy`` requires Python 3.9+!\n\n.. code-block::\n\n    pip install mwpy\n\n\nNotable features\n----------------\n- Supports setting a custom `User-Agent header`_ for each ``API`` instance.\n- Handles `query continuations`_.\n- Handles batchcomplete_ signals for prop queries and yeilds the results as soon as a batch is complete.\n- Configurable maxlag_. Waits as the  API recommends and then retries.\n- Some convenient methods for accessing common API calls, e.g. for recentchanges_, login_, and siteinfo_.\n- 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.\n\n.. _MediaWiki: https://www.mediawiki.org/\n.. _trio: https://github.com/python-trio/trio\n.. _asks: https://github.com/theelous3/asks\n.. _User-Agent header: https://www.mediawiki.org/wiki/API:Etiquette#The_User-Agent_header\n.. _query continuations: https://www.mediawiki.org/wiki/API:Query#Example_4:_Continuing_queries\n.. _batchcomplete: https://www.mediawiki.org/wiki/API:Query#Example_5:_Batchcomplete\n.. _recentchanges: https://www.mediawiki.org/wiki/API:RecentChanges\n.. _login: https://www.mediawiki.org/wiki/API:Login\n.. _siteinfo: https://www.mediawiki.org/wiki/API:Siteinfo\n.. _maxlag: https://www.mediawiki.org/wiki/Manual:Maxlag_parameter\n.. _Python: https://www.python.org/\n.. _pymw: https://github.com/5j9/pymw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5j9%2Fmwpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5j9%2Fmwpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5j9%2Fmwpy/lists"}