Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metron-project/mokkari
Python wrapper for Metron API
https://github.com/metron-project/mokkari
comic comicbook comics python rest-api
Last synced: 1 day ago
JSON representation
Python wrapper for Metron API
- Host: GitHub
- URL: https://github.com/metron-project/mokkari
- Owner: Metron-Project
- License: gpl-3.0
- Created: 2021-05-16T01:47:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-20T15:16:25.000Z (29 days ago)
- Last Synced: 2024-10-20T17:08:45.931Z (29 days ago)
- Topics: comic, comicbook, comics, python, rest-api
- Language: Python
- Homepage:
- Size: 1.61 MB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Mokkari
[![PyPI - Version](https://img.shields.io/pypi/v/mokkari.svg)](https://pypi.org/project/mokkari/)
[![PyPI - Python](https://img.shields.io/pypi/pyversions/mokkari.svg)](https://pypi.org/project/mokkari/)
[![Ruff](https://img.shields.io/badge/Linter-Ruff-informational)](https://github.com/charliermarsh/ruff)
[![Pre-Commit](https://img.shields.io/badge/Pre--Commit-Enabled-informational?logo=pre-commit)](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, passwordm = 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.