A Python wrapper for the Comicvine API.
Project description
Simyan
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.
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(924.2 kB
view hashes)
Built Distribution
Simyan-0.4.0-py3-none-any.whl
(14.2 kB
view hashes)