Skip to main content

A Python wrapper for the Comicvine API.

Project description

Simyan

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

Github - Contributors Github Action - Code Analysis Github Action - Testing

Code Style - Black

A Python wrapper for the Comicvine API.

Installation

PyPI

$ pip install Simyan

Example Usage

from Simyan import api
# Your config/secrets
from config import comicvine_api_key

session = api(api_key=comicvine_api_key)

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

# Get details for a Volume
result = session.volume(_id=26266)
print(result.summary)

There is a cache option to limit required calls to API

from Simyan import api, SqliteCache
# Your config/secrets
from config import comicvine_api_key

session = api(api_key=comicvine_api_key, cache=SqliteCache())

# Get details for an Issue
result = session.issue(_id=189810)
print(f"{result.volume.name} #{result.number}")
print(result.description)

Socials

Big thanks to Mokkari for the inspiration and template for this project.

Social - Discord

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

Uploaded Source

Built Distribution

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

Simyan-0.4.1-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file Simyan-0.4.1.tar.gz.

File metadata

  • Download URL: Simyan-0.4.1.tar.gz
  • Upload date:
  • Size: 924.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10

File hashes

Hashes for Simyan-0.4.1.tar.gz
Algorithm Hash digest
SHA256 29575977cff04bfadf3af6fd7d22351ca466d0c6400f2acb70091280dad80139
MD5 d58878e8d0fa69ee39666e1926bd752a
BLAKE2b-256 7f39688254bdfb21c4228052289dd837a7b612be6110e374535e2cd779c43d01

See more details on using hashes here.

File details

Details for the file Simyan-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: Simyan-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.7 Windows/10

File hashes

Hashes for Simyan-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 902d0da6b5680d8703ba7b982ef670184aaf1bd24d4574193db7aedf72fb48a2
MD5 fc279e3735199a0b0dc4426f66a50cfa
BLAKE2b-256 b0ec7ca318dd500d81b515db89235d8718a0ef5719918cfd4331c9bba9211cc2

See more details on using hashes here.

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