Skip to content

Himon

PyPI - Python PyPI - Status PyPI - Version PyPI - License

Hatch Pre-Commit Black Ruff

Github - Contributors Github Action - Testing

Read the Docs

A Python wrapper for League of Comic Geeks.

Installation

Bash
pip install Himon

Documentation

Read the project documentation

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 search in session.search(search_term="Blackest Night"):
    print(f"Search result: {search.publisher_name} - {search.series_name} - {search.title}")

# Get Series by id
series = session.series(series_id=100096)
print(f"Series: {series.series_id} - {series.title}")

# Get Comic by id
comic = session.comic(comic_id=2710631)
print(f"Comic: {comic.comic_id} - {comic.title}")

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.

Notes

Who or what is Himon?

Himon is a citizen of New Genesis who secretly lives on the planet Apokolips, which is ruled by Darkseid.

More details at Himon (New Earth)

Socials

Social - Matrix