{"id":15134723,"url":"https://github.com/5j9/pymw","last_synced_at":"2026-02-16T06:01:56.797Z","repository":{"id":62581943,"uuid":"275290023","full_name":"5j9/pymw","owner":"5j9","description":"a low-level MediaWiki API client","archived":false,"fork":false,"pushed_at":"2020-08-30T12:08:58.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T07:33:52.171Z","etag":null,"topics":["api","api-client","mediawiki","mediawiki-api","mediawiki-api-wrapper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-27T03:09:21.000Z","updated_at":"2020-08-30T12:09:01.000Z","dependencies_parsed_at":"2022-11-03T21:36:38.459Z","dependency_job_id":null,"html_url":"https://github.com/5j9/pymw","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/5j9/pymw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fpymw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fpymw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fpymw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fpymw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/5j9","download_url":"https://codeload.github.com/5j9/pymw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/5j9%2Fpymw/sbom","scorecard":{"id":5158,"data":{"date":"2025-08-11","repo":{"name":"github.com/5j9/pymw","commit":"d718979a2dee6ecc378e30d81f29d174ded7b689"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T13:23:15.898Z","repository_id":62581943,"created_at":"2025-08-14T13:23:15.898Z","updated_at":"2025-08-14T13:23:15.898Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271789730,"owners_count":24821424,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","api-client","mediawiki","mediawiki-api","mediawiki-api-wrapper"],"created_at":"2024-09-26T05:23:58.763Z","updated_at":"2025-10-06T13:13:56.881Z","avatar_url":"https://github.com/5j9.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://badge.fury.io/py/pymw.svg\n    :target: https://badge.fury.io/py/pymw\n.. image:: https://travis-ci.org/5j9/pymw.svg?branch=master\n    :target: https://travis-ci.org/5j9/pymw\n.. image:: https://codecov.io/gh/5j9/pymw/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/5j9/pymw\n\nYet another MediaWiki client library for Python. It's not stable yet and it requires Python 3.9+!\n\nInstallation\n------------\n.. code-block:: bash\n\n    pip install pymw\n\nUsage\n-----\nTo avoid directly providing username and password for login calls create a ``.pymw.json`` file in your home directory with the following format:\n\n.. code-block:: json\n\n    {\n        \"https://test.wikipedia.org/w/api.php\": {\n            \"\u003cUsername@Special:BotPasswords\u003e\": {\n                \"BotPassword\": \"\u003cBotPassword\u003e\"\n            },\n            \"\u003cUsername2\u003e\": {\n                \"BotPassword\": \"\u003cBotPassword\u003e\",\n                \"limit\": 500\n            }\n        },\n        \"https://*.wikipedia.org/w/api.php\": {\n            \"\u003cUsername\u003e\": {\n                \"BotPassword\": \"\u003cBotPassword\u003e\"\n            }\n        }\n    }\n\nAs you can see, glob patterns are supported.\n\nNotable features\n----------------\n- Has a ``post_and_continue`` method that can handle `continuations`_.\n- Parameter values can be ``str`` or any Python iterable. Iterable values that are not an ``str`` instance will be converted to a pipe-joined ``str`` before being sent.\n- The ``post_and_continue`` method automatically breaks a value that has too many items in it into several API calls according the API limit for the current user and yields the results. (Currently this feature works only if there is just one violating parameter. The algorithm might be improved in the future to handle more complex situations.)\n- ``prop`` method handles batchcomplete_ signals for prop queries and yields the results as soon as a batch is complete.\n- Configurable maxlag_. Waits as the  API recommends and then retries.\n- Automatically tries to login before performing actions that are known to require login.\n- Automatically tries to login if an API call returns ``login-required`` error (requires username and password to be set in ``~/.pymw.json``).\n- Some convenient methods for accessing common API calls, e.g. for login_ and upload_.\n- 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.\n- The ``post_and_continue`` method can handle *most* ``toomanyvalues`` errors by automatically splitting the violating parameter into several API calls. (not a feature to rely on in production, but nice to have during a console session for example.)\n- Supports setting a custom `User-Agent header`_ for each ``API`` instance.\n\n.. _MediaWiki: https://www.mediawiki.org/\n.. _User-Agent header: https://www.mediawiki.org/wiki/API:Etiquette#The_User-Agent_header\n.. _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.. _upload: https://www.mediawiki.org/wiki/API:Upload\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5j9%2Fpymw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F5j9%2Fpymw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F5j9%2Fpymw/lists"}