Skip to main content

Библиотека для работы с 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)

Table of built distributions (wheels) for nanofootball-sdk 0.1.0
File Interpreter ABI Platform
nanofootball_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page