Skip to main content

A Python wrapper for the Grand Comics Database API.

Project description

Grayven

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

pre-commit Ruff

Github - Contributors Github Action - Testing Github Action - Publishing

Read the Docs

A Python wrapper for the Grand Comics Database API.

Installation

pip install --user Grayven

Example Usage

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

Bugs/Requests

Please use the GitHub issue tracker 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

Social - Matrix Social - Matrix

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.4.0.tar.gz (165.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grayven-0.4.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file grayven-0.4.0.tar.gz.

File metadata

  • Download URL: grayven-0.4.0.tar.gz
  • Upload date:
  • Size: 165.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for grayven-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a400815aeaf12b62bbc92242d3d3f8e1340935422b6a2e511212fcb4783bbc23
MD5 97662d1a3064b2219cd1e3da37fa6fb6
BLAKE2b-256 8d294a9d2464b0c731c0c6529f5710ff7ff352f9009b3f25947a53ed2187e797

See more details on using hashes here.

Provenance

The following attestation bundles were made for grayven-0.4.0.tar.gz:

Publisher: publishing.yaml on Metron-Project/Grayven

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file grayven-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: grayven-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for grayven-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64ffb6bd1cd154d337f717c9fdefd805f9da23a27bfd8f57a9bf4a43106c2c85
MD5 e2399dc6446dab8abc7d32fe3f17d292
BLAKE2b-256 b086d210b2ba9856d2da31364584c28838adbd1ce973ac69235b4b8718b4aa06

See more details on using hashes here.

Provenance

The following attestation bundles were made for grayven-0.4.0-py3-none-any.whl:

Publisher: publishing.yaml on Metron-Project/Grayven

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page