A Python wrapper for the Grand Comics Database API.
Project description
Grayven
A Python wrapper for the Grand Comics Database API.
Installation
pip install Grayven
Example Usage
from datetime import timedelta
from pathlib import Path
from grayven.grand_comics_database import GrandComicsDatabase
session = GrandComicsDatabase(
email="email@example.com",
password="Password",
cache_path=Path("cache.sqlite"), # Optional, defaults to ~/.cache/grayven/cache.sqlite
cache_expiry=timedelta(days=1), # Optional, defaults to 14 days
ratelimit_path=Path(
"ratelimits.sqlite"
), # Optional, defaults to ~/.cache/grayven/ratelimits.sqlite
)
# Search for Series
results = session.list_series(name="Green Lantern")
for series in results:
print(f"{series.id} | {series.name} ({series.year_began})")
# Get an issue's release date
result = session.get_issue(id=242700)
print(result.on_sale_date)
Documentation
Bugs/Requests
Please use the issue tracker to submit bugs or request features.
Contributing
- When running a new test for the first time, set the environment variables
GCD_EMAILto your GCD email address andGCD_PASSWORDto your GCD password. The responses will be cached in thetests/cache.sqlitedatabase without your credentials.
Socials
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
grayven-0.6.0.tar.gz
(336.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
grayven-0.6.0-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file grayven-0.6.0.tar.gz.
File metadata
- Download URL: grayven-0.6.0.tar.gz
- Upload date:
- Size: 336.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ef55e148acc6f70b3fce5331e88954a0cac81fdf1716dee1313d871b208e9f1
|
|
| MD5 |
ba8d86e74cfc92bf10fd982958a88a8b
|
|
| BLAKE2b-256 |
e59ec4a05233dff3686d19d1b25b5f74b80817031cefb168270fc5d0cce738e7
|
File details
Details for the file grayven-0.6.0-py3-none-any.whl.
File metadata
- Download URL: grayven-0.6.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42d29010a7d30d5cbb6f2014f6f78dd8dcb76f85ef61f12b163d87585aafb61a
|
|
| MD5 |
d21aa67dd56e89998c38e5e1e8de3b37
|
|
| BLAKE2b-256 |
d94c8e02e999d4ef10125b6e0be55e6abeafb6e0d04b8bed844fc513578eaf38
|