shikimori_api
Unofficial wrapper for the Shikimori API
Installation
This package requires Python 3.6 or later
pip install shikimori_api
Dependencies
Usage
from shikimori_api import Shikimori
session = Shikimori()
api = session.get_api()
api.animes.GET(search='KonoSuba', kind='movie') # GET /api/animes?search=KonoSuba&kind=movie
api.animes(1).GET() # GET /api/animes/1
api.animes(1).screenshots.GET() # GET /api/animes/1/screenshots
OAuth
import json
def token_saver(token: dict):
with open('token.json', 'w') as f:
f.write(json.dumps(token))
session = Shikimori('APP_NAME', client_id='CLIENT_ID', client_secret='CLIENT_SECRET', token_saver=token_saver)
print(session.get_auth_url())
code = input('Authorization Code: ')
session.fetch_token(code)
After receiving and saving token, you can load it from file:
with open('token.json') as f:
token = json.load(f)
session = Shikimori('APP_NAME', client_id='CLIENT_ID', client_secret='CLIENT_SECRET',
token=token, token_saver=token_saver)
Metadata
Release files for shikimori-api 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shikimori_api-1.0.1.tar.gz | 3.7 kB | Without provenance | Details for shikimori_api-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shikimori_api-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for shikimori_api-1.0.1-py3-none-any.whl |
Total release size: 8.3 kB
Release files / shikimori_api-1.0.1.tar.gz
| Download URL | shikimori_api-1.0.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91d11b0ca793b693261ff8479a799886ff777c1a2526634505bf3834430c9f7a
|
|
BLAKE2b-256 checksum How to use checksums |
082b544ea71a9c2ae5aa317684f6c4f56428c5153f99b18fbfe17c214241ac05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
|
Release files / shikimori_api-1.0.1-py3-none-any.whl
| Download URL | shikimori_api-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
441c36c6500f924d6fba98b24135325e65141a9f400c01eaf7f9e3388692419c
|
|
BLAKE2b-256 checksum How to use checksums |
27b16e4f6045131c281fca6f006ddef50982122818f0c764e9aa6d654ab42a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
|
Security for shikimori-api 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.