Библиотека для работы с nanofootball.com
Позволяет заскриптовать самые простые действия, и легко создавать удалять упражнения, искать повторы и другое.
Установка
pip install nanofootball-sdk
Авторизация
Через файл nanofootball-credentials.yaml(рекомендуется)
Создайте файл nanofootball-credentials.yaml следующего содержания
username: my_name@yandex.ru
password: qwerty111
и положите в домашнюю или локальную папку, тогда при вызову всех апишек можно будет пользоваться просто
videos=VideoService()
for video in videos:
print(video)
Через код
from nanofoot import Api
api=Api(username='my_name@yandex.ru', password='qwerty123.')
В таком случае все сервисы нужно будет создавать вручную указывая апи
from nanofoot import Api, VideoService
api=Api(username='my_name@yandex.ru', password='qwerty123.')
videos=VideoService(api=api)
for video in videos:
print(video)
Видео
from nanofoot import VideoService
videos=VideoService()
print(videos[2554])
# prints video with id 2554
Упражнения
from nanofoot import ExerciceService
exercises=ExercisesService()
print(exercises[122])
# prints exercise with id 122
for exercise in exercises['Z3']
print(exercise)
# will print all exercises in Z3 folder
Командная строка
Позволяет выполнять простые фукции с сайтом, создавать, удалять, просматривать видео и упражнения
nf video info 2334
nf video delete 2334
nf --help
Metadata
Release files for nanofootball-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nanofootball_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nanofootball_sdk-0.1.0-py3-none-any.whl |
Release files / nanofootball_sdk-0.1.0-py3-none-any.whl
| Download URL | nanofootball_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e43e0c7254e59a14b2d3956f1c61e279dcc0f8dc82fc0907bdb407406bd77665
|
|
BLAKE2b-256 checksum How to use checksums |
f94c7340b577ec0a81aca299e6dca18057fc61b47a4ca925bd431e5b6e9603f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for nanofootball-sdk 0.1.0
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.