No project description provided
Project description
Библиотека для работы с 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nanofootball_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nanofootball_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43e0c7254e59a14b2d3956f1c61e279dcc0f8dc82fc0907bdb407406bd77665
|
|
| MD5 |
a18b58b2b757b5c7b9193cd32e1c2198
|
|
| BLAKE2b-256 |
f94c7340b577ec0a81aca299e6dca18057fc61b47a4ca925bd431e5b6e9603f0
|