Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nanofootball_sdk-0.1.0-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

Supported by

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