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.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

shiki4py-0.2.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shiki4py-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 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.1.tar.gz
Algorithm Hash digest
SHA256 377944e76be6942fd2dfe58ad298d650cc41913021c2ae738bba8ecbcbe905d9
MD5 a76c8ba73048bb4ad0b00fb81eb76eb0
BLAKE2b-256 8dee1c05c80d071c82299ade1b4b0643a2ffa95be0aaa5eba899e5cd417d8d83

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: shiki4py-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e475c3266e9c61e75360f74f7dd1930e017083deadc737c52dd9444664492ca5
MD5 9c303a17b1481b6af7c9583ef492f838
BLAKE2b-256 de463103f0f429d9ac5929210855a5b147fb042acb50b666d47b9c70dec288b0

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