Skip to main content

Асинхронная Python библиотека для работы с API anime365 (smotret-anime)

Project description

Anime365

Python Version License Code Style PyPI Version Downloads Status

Асинхронная Python библиотека для работы с API сайта Anime365.

Установка

pip install anime365

Быстрый старт

import asyncio
from anime365 import Anime365Client

async def main():
    client = Anime365Client(access_token="<token>")
    
    try:
        # Информация о пользователе
        user = await client.get_user_info()
        print(f"Пользователь: {user.name}")
        
        # Поиск аниме
        anime_list = await client.search_anime("naruto", limit=5)
        for anime in anime_list:
            print(f"- {anime.title} ({anime.year})")
        
        # Последние переводы
        translations = await client.get_recent_translations(limit=3)
        for trans in translations:
            print(f"- {trans.title}")
            
    finally:
        await client.close()

asyncio.run(main())

Основные функции

# Поиск аниме
anime = await client.search_anime("attack on titan", limit=10)

# Получение переводов
translations = await client.get_anime_translations(anime_id, limit=100)

# Embed данные для воспроизведения
embed_data = await client.get_embed_data(translation_id)

# Информация об эпизоде
episode = await client.get_episode(episode_id)

Авторизация

# Через токен
client = Anime365Client(access_token="<token>")

# Через email/пароль
client = Anime365Client(
    email="email@example.com",
    password="password"
)

Требования

  • Python 3.7+
  • aiohttp >= 3.8.0
  • pydantic >= 2.0.0

Лицензия

License: MIT

MIT License

Поддержка

Для получения документации API обратитесь к модерации сайта Anime365.

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

anime365-1.0.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anime365-1.0.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file anime365-1.0.0.tar.gz.

File metadata

  • Download URL: anime365-1.0.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.11

File hashes

Hashes for anime365-1.0.0.tar.gz
Algorithm Hash digest
SHA256 646d599e8e91f25ff4d64f73f895b40070a8b4610944ce20e07c40c33e58d20a
MD5 73fdcebc0411e1d4800699a8fa5ca4ca
BLAKE2b-256 56600d544c53a479b57a352470e4270993c998fabfd329488e20bae788fa2e08

See more details on using hashes here.

File details

Details for the file anime365-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: anime365-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.11

File hashes

Hashes for anime365-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 050edec18aa2cdd9f1018fac7f96009fee26d39b5c97022c98032c1b523a4e95
MD5 9a3faad96725c8f69a6e738af8171dee
BLAKE2b-256 8b3d8eb2137f3ad5b86be318c2976a8af15a007f5ccdb8d78d5e3f21ff4af2c9

See more details on using hashes here.

Supported by

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