Python client for webinar.ru (mts-link.ru) platform
Project description
Python-клиент для платформы webinar.ru (mts-link.ru)
Клиент находится в разработке!
Особенности
Клиент полностью асинхронный с поддержкой валидации Pydantic. Требуется Python 3.11 или выше. Основан на aiohttp
и pydantic
.
Сделан на основе документации: https://help.webinar.ru/ru/articles/3180654-api-список-методов-вебинары
Установка
$ pip install webinarru
Простое использоание
Создайте файл main.py
:
import asyncio
from pprint import pprint
from WebinarRu import WebinarAPI
webinar = WebinarAPI("YOUR_API_TOKEN")
async def main():
# Получение списка часовых поясов
timezones = await webinar.get_timezones()
pprint(timezones)
# Выгрузка мероприятий
events = await webinar.get_events(date_from=datetime.datetime(2024, 8, 10), status=["STOP", "ACTIVE"])
pprint(events)
# Участники вебинаров
for event in events:
for eventsession in event.eventSessions:
participations = await webinar.get_event_session_participations(eventsession.id)
pprint(participations)
if __name__ == '__main__':
asyncio.run(main())
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 Distribution
webinarru-0.1.3.tar.gz
(18.5 kB
view details)
Built Distribution
webinarru-0.1.3-py3-none-any.whl
(19.3 kB
view details)
File details
Details for the file webinarru-0.1.3.tar.gz
.
File metadata
- Download URL: webinarru-0.1.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.12-3-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca394f48a67002fa5b4570f498e084d290b4ea0e2288e5da60b68dc81fd5bc7 |
|
MD5 | e90e7dea3747784ca60677643489cd58 |
|
BLAKE2b-256 | 6f98b1708ce87ebb2c1ab71d5d32dcae7cdd62f2021616ce6bc40817178b2513 |
File details
Details for the file webinarru-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: webinarru-0.1.3-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.9.12-3-MANJARO
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5820c5a1e88db72f7794bf9f23bc23cfdfb2b8d12d8c23265c8534cb9c9c863a |
|
MD5 | 351ebe3de4c4f557f7a04bef72a8a540 |
|
BLAKE2b-256 | cfc1fc60144c32d447becd9fb0e865215de3dbad4cbdc879f0c135ad52622c19 |