A Python wrapper for League of Comic Geeks.
Project description
Himon
A Python wrapper for League of Comic Geeks.
Installation
PyPI
- Make sure you have Python installed:
python --version
- Install the library from PyPI:
pip install himon
Github
- Make sure you have Python installed:
python --version
- Clone the repo:
git clone https://github.com/Buried-In-Code/Himon
- Install the library:
pip install .
Example Usage
from himon.league_of_comic_geeks import LeagueofComicGeeks
from himon.sqlite_cache import SQLiteCache
access_token = None
session = LeagueofComicGeeks(client_id="Client Id", client_secret="Client Secret", access_token=access_token, cache=SQLiteCache())
# Generate an access token if not supplied
if not 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}")
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
himon-0.3.0.tar.gz
(50.7 kB
view details)
Built Distribution
himon-0.3.0-py3-none-any.whl
(22.6 kB
view details)
File details
Details for the file himon-0.3.0.tar.gz
.
File metadata
- Download URL: himon-0.3.0.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06c32ad8caacba5e6efc042ba9db7675cfd149becd8deed61f107da2e2aa6a4a |
|
MD5 | ea1c7ed540f98a136a27ea4a38133d61 |
|
BLAKE2b-256 | ecabc982b255e5e9861659c3ca1e03fd02249dc863cf4877ee0bef28c6801b83 |
Provenance
File details
Details for the file himon-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: himon-0.3.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a036bdffc43fcccd264d2de7e31e50c5e829149863616dbc23053b16411e4ca9 |
|
MD5 | d84a0bba9c83faa1e931fac76cd638a1 |
|
BLAKE2b-256 | 4472491937d3d56a48e95340772c8cf0a395483898f959c234a58c1da395ece9 |