Skip to main content

Api client for Shikimori

Project description

Shiki4py

PyPI

Клиент для api Shikimori.

Мой профиль на шики https://shikimori.one/Ren3104

Особенности

  • Поддержка api v1 и v2
  • Ограничения 5rps и 90rpm
  • Система логирования
  • OAuth2 авторизация
  • Функция безопасного создания комментариев

Установка

pip install shiki4py

Использование

from shiki4py import Client
from pprint import pprint


APP_NAME = 'APP_NAME'
CLIENT_ID = 'CLIENT_ID'
CLIENT_SECRET = 'CLIENT_SECRET'


# Клиент без авторизации
client = Client(APP_NAME)
# Клиент с авторизацией
client = Client(APP_NAME, CLIENT_ID, CLIENT_SECRET)

clubs = client.get('clubs', params={
    'search': 'Детектив Конан'
})

pprint(clubs)
# [{'comment_policy': 'free',
#   'id': 3483,
#   'is_censored': False,
#   'join_policy': 'free',
#   'logo': {'main': '/system/clubs/main/3483.gif?1637694999',
#            'original': '/system/clubs/original/3483.gif?1637694999',
#            'x48': '/system/clubs/x48/3483.gif?1637694999',
#            'x73': '/system/clubs/x73/3483.gif?1637694999',
#            'x96': '/system/clubs/x96/3483.gif?1637694999'},
#   'name': 'Детектив Конан'}]

Зависимости

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

shiki4py-0.2.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

shiki4py-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file shiki4py-0.2.0.tar.gz.

File metadata

  • Download URL: shiki4py-0.2.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for shiki4py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 626acc91f27313b955b7de5bdc63889d1974027fefec1d570952f15c32f547ad
MD5 58d2ee325d97d991d880a3c23e88da96
BLAKE2b-256 2de18dfe1c1e52cff305bce59be30f2f27851b65385c908c1654dbb337b3c9d6

See more details on using hashes here.

Provenance

File details

Details for the file shiki4py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shiki4py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for shiki4py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dba255a37f08859699ba3201a4696ae526d4175df35c40245c245658dc5d941
MD5 55cf2fdf6cdadbeb4285ff5989f98fde
BLAKE2b-256 298244a27e284c6ec4aead296b2e3a2a88b2f8d806a907b32d5df47cc2484d2b

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page