# Python Wikimedia Enterprise API
This is not the official API for the Wikimedia Enterprise API.
Currently only supports the on-demand API
```python
import wme
creds = await wme.auth.login(username, password)
on_demand = wme.on_demand.OnDemand(creds)
results = await on_demand.lookup("Wikimedia Foundation")
```
## Testing
For testing make a `.env` file with `WME_USERNAME` and `WME_PASSWORD`.
Install the pre-commit hooks with `poetry run pre-commit install` or just run them manually e.g. `poetry run ruff check`
Raw data
{
"_id": null,
"home_page": "https://gitlab.wikimedia.org/repos/future-audiences/wme",
"name": "wme",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": "wikimedia, api, python",
"author": "Daniel Erenrich",
"author_email": "derenrich@wikimedia.org",
"download_url": "https://files.pythonhosted.org/packages/86/62/a2475eec9cf604f13efd2fef1e7377b9185379ad02bda6d74a5da7ef3277/wme-0.1.1.tar.gz",
"platform": null,
"description": "# Python Wikimedia Enterprise API\n\nThis is not the official API for the Wikimedia Enterprise API.\n\nCurrently only supports the on-demand API\n\n```python\nimport wme\ncreds = await wme.auth.login(username, password)\non_demand = wme.on_demand.OnDemand(creds)\nresults = await on_demand.lookup(\"Wikimedia Foundation\")\n```\n\n## Testing\n\nFor testing make a `.env` file with `WME_USERNAME` and `WME_PASSWORD`.\n\nInstall the pre-commit hooks with `poetry run pre-commit install` or just run them manually e.g. `poetry run ruff check`\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "python library for accessing the Wikimedia Enterprise API",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://gitlab.wikimedia.org/repos/future-audiences/wme",
"Repository": "https://gitlab.wikimedia.org/repos/future-audiences/wme"
},
"split_keywords": [
"wikimedia",
" api",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6f6cc662cf4b05d6f67359cc5b7ba5995dd7961123d7ad6b227ac0da6f580fce",
"md5": "d6f793a6fc5d26d95c4035eafe7addf1",
"sha256": "b9c9e35b33e991787f1916ebad322137008f20e6c61bf19a6f30aad7461d64de"
},
"downloads": -1,
"filename": "wme-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d6f793a6fc5d26d95c4035eafe7addf1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 6505,
"upload_time": "2025-02-14T04:20:21",
"upload_time_iso_8601": "2025-02-14T04:20:21.862730Z",
"url": "https://files.pythonhosted.org/packages/6f/6c/c662cf4b05d6f67359cc5b7ba5995dd7961123d7ad6b227ac0da6f580fce/wme-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8662a2475eec9cf604f13efd2fef1e7377b9185379ad02bda6d74a5da7ef3277",
"md5": "d14d8fb435e602ea08568c58bb509d38",
"sha256": "d337e64a1192d44114eb8d5dea6af91f9fdf24472dc43701c93325a73bd2c36e"
},
"downloads": -1,
"filename": "wme-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "d14d8fb435e602ea08568c58bb509d38",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 5383,
"upload_time": "2025-02-14T04:20:22",
"upload_time_iso_8601": "2025-02-14T04:20:22.899270Z",
"url": "https://files.pythonhosted.org/packages/86/62/a2475eec9cf604f13efd2fef1e7377b9185379ad02bda6d74a5da7ef3277/wme-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-14 04:20:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "wme"
}