https://github.com/buried-in-code/himon
A Python wrapper for League of Comic Geeks.
https://github.com/buried-in-code/himon
comics league-of-comic-geeks-api mkdocs pypi-package python python-3 read-the-docs
Last synced: about 1 month ago
JSON representation
A Python wrapper for League of Comic Geeks.
- Host: GitHub
- URL: https://github.com/buried-in-code/himon
- Owner: Buried-In-Code
- License: gpl-3.0
- Created: 2022-07-17T22:29:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T20:53:52.000Z (about 1 year ago)
- Last Synced: 2025-01-16T09:41:58.186Z (10 months ago)
- Topics: comics, league-of-comic-geeks-api, mkdocs, pypi-package, python, python-3, read-the-docs
- Language: Python
- Homepage: https://pypi.org/project/himon
- Size: 199 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Himon
[](https://pypi.python.org/pypi/Himon/)
[](https://pypi.python.org/pypi/Himon/)
[](https://pypi.python.org/pypi/Himon/)
[](https://opensource.org/licenses/MIT)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/astral-sh/ruff)
[](https://github.com/Buried-In-Code/Himon/graphs/contributors)
[](https://github.com/Buried-In-Code/Himon/actions/workflows/testing.yaml)
[](https://github.com/Buried-In-Code/Himon/actions/workflows/publishing.yaml)
[](https://himon.readthedocs.io/en/latest/?badge=latest)
A [Python](https://www.python.org/) wrapper for [League of Comic Geeks](https://leagueofcomicgeeks.com).
## Installation
```console
pip install --user Himon
```
### Example Usage
```python
from himon.league_of_comic_geeks import LeagueofComicGeeks
from himon.sqlite_cache import SQLiteCache
session = LeagueofComicGeeks(client_id="Client Id", client_secret="Client Secret", access_token=None, cache=SQLiteCache())
# Generate an access token if not supplied
if not session.access_token:
session.access_token = session.generate_access_token()
# Search for Comic
for result in session.search(search_term="Blackest Night"):
print(f"Result: {result.publisher_name} - {result.series_name} - {result.title}")
# Get Series by id
series = session.get_series(series_id=100096)
print(f"Series: {series.id} - {series.title}")
# Get Comic by id
comic = session.get_comic(comic_id=2710631)
print(f"Comic: {comic.id} - {comic.title}")
```
## Documentation
- [Himon](https://himon.readthedocs.io/en/stable)
## Bugs/Requests
Please use the [GitHub issue tracker](https://github.com/Buried-In-Code/Himon/issues) to submit bugs or request features.
## Socials
[](https://fosstodon.org/@BuriedInCode)\
[](https://matrix.to/#/#The-Dev-Environment:matrix.org)