Skip to main content

A Python wrapper for the Comicvine API.

Project description

Simyan

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

prek Ruff ty

Linting Testing Publishing Read the Docs

A Python wrapper for the Comicvine API.

Installation

pip install Simyan

Example Usage

from datetime import timedelta
from pathlib import Path

from simyan.comicvine import Comicvine

session = Comicvine(
    api_key="Comicvine API Key",
    cache_path=Path("cache.sqlite"),  # Optional, defaults to ~/.cache/simyan/cache.sqlite
    cache_expiry=timedelta(days=1),  # Optional, defaults to 14 days
    ratelimit_path=Path(
        "ratelimits.sqlite"
    ),  # Optional, defaults to ~/.cache/simyan/ratelimits.sqlite
)

# Search for Publisher
results = session.list_publishers(params={"filter": "name:DC Comics"})
for publisher in results:
    print(f"{publisher.id} | {publisher.name} - {publisher.site_url}")

# Get details for a Volume
result = session.get_volume(volume_id=26266)
print(result.summary)

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 variable COMICVINE__API_KEY to your Comicvine API key. The responses will be cached in the tests/cache.sqlite database without your key.

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

simyan-3.0.0.tar.gz (12.8 MB view details)

Uploaded Source

Built Distribution

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

simyan-3.0.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file simyan-3.0.0.tar.gz.

File metadata

  • Download URL: simyan-3.0.0.tar.gz
  • Upload date:
  • Size: 12.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for simyan-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c8e69e0fc59509b38a42dd9d5dfa6e5beec798630253c54a487aa7c0a9f63166
MD5 c071ce264318d01a32d32628d1dcbc6a
BLAKE2b-256 a2bb4dbbfeabee7646150f363f79d0a4487c12a06ab447aaabc213facfe0a0ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for simyan-3.0.0.tar.gz:

Publisher: publishing.yaml on Metron-Project/Simyan

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

File details

Details for the file simyan-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: simyan-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for simyan-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4889aa17e143b53c528c8329dd1b0c45b8d5717effcb88a3baf537a6cb40fef3
MD5 af0d65bbcdc64b13ab5ef80a0c050c5f
BLAKE2b-256 880c1f274f82ffbbffd8f4590d5e55e25d2b66f4d835db6a7e49e5bb542cf498

See more details on using hashes here.

Provenance

The following attestation bundles were made for simyan-3.0.0-py3-none-any.whl:

Publisher: publishing.yaml on Metron-Project/Simyan

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