A Python wrapper for the Comicvine API.
Project description
Simyan
A Python wrapper for the Comicvine API.
Built Using
Installation
PyPI
$ pip install Simyan
Example Usage
from Simyan import api
# Your config/secrets
from config import comicvine_api_key
session = api(comicvine_api_key)
# Search for Publisher
publisher_results = session.publisher_list({'name': 'DC Comics'})
for publisher in publisher_results:
print(f"{publisher.id} | {publisher.name} - {publisher.site_url}")
# Get details for a Volume
blackest_night = session.volume(26266)
print(blackest_night.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(comicvine_api_key, cache=SqliteCache())
# Get details for an Issue
result = session.issue(189810)
print(f"{result.volume.name} #{result.issue_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.1.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
simyan-0.1.1-py3-none-any.whl
(13.6 kB
view hashes)