Petersburgedu wrap
This module is designed for work with petersburgedu internal API.
Full documentaton(WIP)
English
Work in progress
Русский(Russian)
Работа в процессе
Быстрый старт
Для быстрого старта в моей библиотеке вы можете воспользоваться минимальным кодом
import petersburgedu_wrap
import logging
# Импорт необходимых библиотек
logging.basicConfig(level=logging.DEBUG) # Настройка логирования
client = petersburgedu_wrap.client.Client() # Создание клиента
client.login_by_token("Ваш токен") # Вход в систему через токен
children = client.get_child_list() # Получить список детей
teachers = client.children[0].get_teacher_list() # Получение списка учителей
for teacher in teachers:
print(f"Имя: {teacher.firstname}, Фамилия: {teacher.surname}, Занимаемая должность: {teacher.position_name}")
Как альтернатива логина через токен, который можно получить на сайте петербургского образования можно использовать логин по почте и паролю
import petersburgedu_wrap
import logging
# Импорт необходимых библиотек
logging.basicConfig(level=logging.DEBUG) # Настройка логирования
client = petersburgedu_wrap.client.Client() # Создание клиента
client.login(login="Ваша почта", password="Ваш пароль") # Вход в систему через токен
children = client.get_child_list() # Получить список детей
teachers = client.children[0].get_teacher_list() # Получение списка учителей
for teacher in teachers:
print(f"Имя: {teacher.firstname}, Фамилия: {teacher.surname}, Занимаемая должность: {teacher.position_name}")
Полная документация будет написана позже
Metadata
Release files for petersburgedu-wrap 0.0.1
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 |
|---|---|---|---|---|
| petersburgedu_wrap-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for petersburgedu_wrap-0.0.1-py3-none-any.whl |
Release files / petersburgedu_wrap-0.0.1-py3-none-any.whl
| Download URL | petersburgedu_wrap-0.0.1-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f70403c1e6c2023f675f719af2b30a29e9975c6aecad097e8f96d3744b397bd3
|
|
BLAKE2b-256 checksum How to use checksums |
3262857cf01ed46a3c94494a6ccbd282dd4621435d4f61594e452e96cd6f9468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|
Security for petersburgedu-wrap 0.0.1
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.