https://github.com/metron-project/grayven
A Python wrapper for the Grand Comics Database API.
https://github.com/metron-project/grayven
api-wrapper grand-comics-database python python-3
Last synced: 8 months ago
JSON representation
A Python wrapper for the Grand Comics Database API.
- Host: GitHub
- URL: https://github.com/metron-project/grayven
- Owner: Metron-Project
- License: mit
- Created: 2024-12-16T04:03:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-10T21:36:51.000Z (over 1 year ago)
- Last Synced: 2025-01-18T15:16:45.153Z (over 1 year ago)
- Topics: api-wrapper, grand-comics-database, python, python-3
- Language: Python
- Homepage: https://pypi.org/project/Grayven
- Size: 212 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Grayven
[](https://pypi.python.org/pypi/Grayven/)
[](https://pypi.python.org/pypi/Grayven/)
[](https://pypi.python.org/pypi/Grayven/)
[](https://opensource.org/licenses/MIT)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/astral-sh/ruff)
[](https://github.com/Metron-Project/Grayven/graphs/contributors)
[](https://github.com/Metron-Project/Grayven/actions/workflows/testing.yaml)
[](https://github.com/Metron-Project/Grayven/actions/workflows/publishing.yaml)
[](https://grayven.readthedocs.io/en/stable)
A [Python](https://www.python.org/) wrapper for the [Grand Comics Database API](https://github.com/GrandComicsDatabase/gcd-django/wiki/API).
## Installation
```console
pip install --user Grayven
```
### Example Usage
```python
from grayven.grand_comics_database import GrandComicsDatabase
from grayven.sqlite_cache import SQLiteCache
session = GrandComicsDatabase(
email="email@example.com",
password="password",
cache=SQLiteCache()
)
# 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
- [Grayven](https://grayven.readthedocs.io/en/stable)
- [GrandComicsDatabase API](https://github.com/GrandComicsDatabase/gcd-django/wiki/API)
## Bugs/Requests
Please use the [GitHub issue tracker](https://github.com/Metron-Project/Grayven/issues) to submit bugs or request features.
## Contributing
- When running a new test for the first time, set the environment variables `GCD_EMAIL` to your GCD email address and `GCD_PASSWORD` to your GCD password.
The responses will be cached in the `tests/cache.sqlite` database without your credentials.
## Socials
[](https://matrix.to/#/#metron-general:matrix.org)
[](https://matrix.to/#/#metron-development:matrix.org)