# Mokkari
[](https://pypi.org/project/mokkari/)
[](https://pypi.org/project/mokkari/)
[](https://github.com/charliermarsh/ruff)
[](https://github.com/pre-commit/pre-commit)
A python wrapper for the [Metron Comic Book Database](https://metron.cloud) API.
## Installation
```bash
pip install mokkari
```
## Example Usage
```python
import mokkari
# Your own config file to keep your credentials secret
from config import username, password
m = mokkari.api(username, password)
# Get all Marvel comics for the week of 2021-06-07
this_week = m.issues_list({"store_date_range_after": "2021-06-07", "store_date_range_before": "2021-06-13", "publisher_name": "marvel"})
# Print the results
for i in this_week:
print(f"{i.id} {i.issue_name}")
# Retrieve the detail for an individual issue
asm_68 = m.issue(31660)
# Print the issue Description
print(asm_68.desc)
```
## Documentation
[Read the project documentation](https://mokkari.readthedocs.io/en/stable/?badge=latest)
## Bugs/Requests
Please use the
[GitHub issue tracker](https://github.com/Metron-Project/mokkari/issues) to
submit bugs or request features.
Raw data
{
"_id": null,
"home_page": null,
"name": "mokkari",
"maintainer": "Brian Pepple",
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": "bdpepple@gmail.com",
"keywords": "comics, comic, metadata, api, rest",
"author": "Brian Pepple",
"author_email": "bdpepple@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/91/af/8eb8e06ec6927ddff57df7c86c9577565c7b9c8b2d5f743fc9ee09a6280c/mokkari-3.8.1.tar.gz",
"platform": null,
"description": "# Mokkari\n\n[](https://pypi.org/project/mokkari/)\n[](https://pypi.org/project/mokkari/)\n[](https://github.com/charliermarsh/ruff)\n[](https://github.com/pre-commit/pre-commit)\n\nA python wrapper for the [Metron Comic Book Database](https://metron.cloud) API.\n\n## Installation\n\n```bash\npip install mokkari\n```\n\n## Example Usage\n\n```python\nimport mokkari\n\n# Your own config file to keep your credentials secret\nfrom config import username, password\n\nm = mokkari.api(username, password)\n\n# Get all Marvel comics for the week of 2021-06-07\nthis_week = m.issues_list({\"store_date_range_after\": \"2021-06-07\", \"store_date_range_before\": \"2021-06-13\", \"publisher_name\": \"marvel\"})\n\n# Print the results\nfor i in this_week:\n print(f\"{i.id} {i.issue_name}\")\n\n# Retrieve the detail for an individual issue\n asm_68 = m.issue(31660)\n\n# Print the issue Description\nprint(asm_68.desc)\n```\n\n## Documentation\n\n[Read the project documentation](https://mokkari.readthedocs.io/en/stable/?badge=latest)\n\n## Bugs/Requests\n\nPlease use the\n[GitHub issue tracker](https://github.com/Metron-Project/mokkari/issues) to\nsubmit bugs or request features.\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Python wrapper for Metron API",
"version": "3.8.1",
"project_urls": {
"Bug Tracker": "https://github.com/Metron-Project/mokkari/issues",
"Homepage": "https://github.com/Metron-Project/mokkari"
},
"split_keywords": [
"comics",
" comic",
" metadata",
" api",
" rest"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b06940ef89872a2a4d2cda1e4720e9e3a6de73654558015fcd4ab186e7eb4004",
"md5": "e20d4dbcc4939228d7ea331b0133c693",
"sha256": "b3d5b3bffaa961e932f962690940b0107385c358020fb14d2888052ea37742eb"
},
"downloads": -1,
"filename": "mokkari-3.8.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e20d4dbcc4939228d7ea331b0133c693",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 32183,
"upload_time": "2025-02-15T14:05:02",
"upload_time_iso_8601": "2025-02-15T14:05:02.057842Z",
"url": "https://files.pythonhosted.org/packages/b0/69/40ef89872a2a4d2cda1e4720e9e3a6de73654558015fcd4ab186e7eb4004/mokkari-3.8.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "91af8eb8e06ec6927ddff57df7c86c9577565c7b9c8b2d5f743fc9ee09a6280c",
"md5": "50a01e6929c4fcbb7898f704b4d6ed84",
"sha256": "497beb0747799c0641a7b776ada900dd3de2595b74a815685905d643f376ae7a"
},
"downloads": -1,
"filename": "mokkari-3.8.1.tar.gz",
"has_sig": false,
"md5_digest": "50a01e6929c4fcbb7898f704b4d6ed84",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 287022,
"upload_time": "2025-02-15T14:05:03",
"upload_time_iso_8601": "2025-02-15T14:05:03.198962Z",
"url": "https://files.pythonhosted.org/packages/91/af/8eb8e06ec6927ddff57df7c86c9577565c7b9c8b2d5f743fc9ee09a6280c/mokkari-3.8.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-15 14:05:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Metron-Project",
"github_project": "mokkari",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "mokkari"
}