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.1.tar.gz
(924.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Simyan-0.4.1-py3-none-any.whl
(14.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29575977cff04bfadf3af6fd7d22351ca466d0c6400f2acb70091280dad80139
|
|
| MD5 |
d58878e8d0fa69ee39666e1926bd752a
|
|
| BLAKE2b-256 |
7f39688254bdfb21c4228052289dd837a7b612be6110e374535e2cd779c43d01
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
902d0da6b5680d8703ba7b982ef670184aaf1bd24d4574193db7aedf72fb48a2
|
|
| MD5 |
fc279e3735199a0b0dc4426f66a50cfa
|
|
| BLAKE2b-256 |
b0ec7ca318dd500d81b515db89235d8718a0ef5719918cfd4331c9bba9211cc2
|