anilibria.py
О библиотеке
anilibria.py - это RESTful и Websocket обёртка для API anilibria.tv.
Вы можете ей пользоваться для получение уведомлений о выходе новой серии, получение информации о тайтлах и других вещей.
Установка
pip install --upgrade anilibria.py
С использование poetry:
poetry add anilibria.py
Использование методов клиента
В библиотеке реализована поддержка RESTful API.
Список всех возможных методов вы можете увидеть здесь <https://anilibriapy.readthedocs.io/ru/latest/client.html>__
.. code-block:: python
import asyncio
from anilibria import AniLibriaClient
async def main(): # Создание клиента client = AniLibriaClient(proxy="http://0.0.0.0:80") # proxy - необязательный аргумент
# Получение тайтла по его коду
title = await client.get_title(code="kimetsu-no-yaiba-yuukaku-hen")
# Вывод описание тайтла
print(title.description) # Все атрибуты вы можете найти в документации моделей
asyncio.run(main())
Использование Websocket
АПИ Анилибрии имеет вебсокет, к которому можно подключиться.
.. code-block:: python
from anilibria import AniLibriaClient, Connect
client = AniLibriaClient()
@client.on(Connect) # Или client.listen(name="on_connect") async def connected(event: Connect): print("Подключено к АПИ")
client.start()
Все модели события вы можете найти здесь <https://anilibriapy.readthedocs.io/ru/latest/events.html>_
Использование с другими библиотеками ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Вы также можете использовать эту библиотеку вместе с:
discord.pyи его форкахaiogram
и с другими.
Примеры использования представлены здесь <https://github.com/Damego/anilibria.py/tree/main/examples>__
Документация
^^^^^^^^^^^^
Официальная документация API <https://github.com/anilibria/docs/blob/master/api_v3.md>__
Документация библиотеки <https://anilibriapy.readthedocs.io/ru/latest/>__
Metadata
Release files for anilibria.py 1.0.4
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 |
|---|---|---|---|---|
| anilibria.py-1.0.4.tar.gz | 34.5 kB | Without provenance | Details for anilibria.py-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anilibria.py-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for anilibria.py-1.0.4-py3-none-any.whl |
Total release size: 73.2 kB
Release files / anilibria.py-1.0.4.tar.gz
| Download URL | anilibria.py-1.0.4.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51a4fc0f12433e2bb70e5d066530a74301021d9c57c7a6b5c1a8d043db08a3eb
|
|
BLAKE2b-256 checksum How to use checksums |
ed35fdb8b92924e60a727a4dac355081ccd499bdf45118578d3ab23482330a1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / anilibria.py-1.0.4-py3-none-any.whl
| Download URL | anilibria.py-1.0.4-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83f100978be27b6cffbae8494cd98f32c854c4c889477cf93c80003c8b0eed69
|
|
BLAKE2b-256 checksum How to use checksums |
fe31a6d18dde30624ebe04716552137fee4dba0555001d0eb589aa56f2769548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for anilibria.py 1.0.4
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.