A lightweight async Python wrapper for school.mos.ru APIs
Project description
📕 SchoolMosPy
SchoolMosPy is a lightweight async Python wrapper for school.mos.ru APIs. It provides a simple and intuitive interface to interact with the Moscow School Electronic Diary platform.
✨ Features
- Async architecture - built on
aiohttpandhttpxfor high performance - Type safety - uses
pydanticfor data validation - Simple API - intuitive interface for working with data
- Full-featured - access to marks, homeworks, events, and profile data
📋 Requirements
- Python 3.12+
- aiohttp >= 3.12.15
- pydantic >= 2.11.9
- httpx >= 0.28.1
📦 Installation
pip install schoolmospy
🚀 Quick Start
import asyncio
from schoolmospy import StudentClient
async def main():
# Create client
client = StudentClient(
token="your_token",
profile_id=12345
)
# Get profile
profile = await client.get_me()
print(f"Name: {profile.name}")
# Get marks
marks = await client.marks.get_marks(
from_date="2024-01-01",
to_date="2024-12-31"
)
# Get homeworks
homeworks = await client.homeworks.get_homeworks(
from_date="2024-01-01",
to_date="2024-12-31"
)
# Get events/schedule
events = await client.events.get_events(
from_date="2024-01-01",
to_date="2024-12-31"
)
await client.close()
asyncio.run(main())
📝 License
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.
🔗 Links
👨💻 Author
Ivan Kriventsev - xd2dd@icloud.com
⭐ If you like this project, please give it a star on GitHub!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 schoolmospy-0.2.1.tar.gz.
File metadata
- Download URL: schoolmospy-0.2.1.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea40c60a2c598a973347b30d335ffdd5548b2e8fdbbf3acf148e89b2d26b734c
|
|
| MD5 |
b9522d75d556e4395f9ab8ca651f9943
|
|
| BLAKE2b-256 |
81ca0a24381626182cbaf7963331ce6d2d722ef70a8cfdfa54fa20270e81c3f6
|
File details
Details for the file schoolmospy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: schoolmospy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.12 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
395f08bd4add121824f0161166e01c9138d703229f6017a47e47c84bd10c4fa4
|
|
| MD5 |
90f77882f8816fc7438d4f16058f9872
|
|
| BLAKE2b-256 |
2f4e0556f72fdedb865a879b4a046bad8e851cd2828f99f1c9c9b957654be4b8
|