Smartschool Parser
Unofficial Python library providing programmatic access to Smartschool's web platform. Access courses, documents, messages, results, agenda, and more through a clean, type-safe API.
Quick Start
Install from PyPI:
pip install smartschool
Create credentials.yml with your Smartschool credentials:
username: your_username
password: your_password
main_url: your_school.smartschool.be
mfa: your_birthday_or_2fa_secret # YYYY-mm-dd or Google Authenticator secret
from smartschool import Smartschool, PathCredentials, Courses
session = Smartschool(PathCredentials())
for course in Courses(session):
print(course.name)
Features
| Category | Classes | Description |
|---|---|---|
| Courses | TopNavCourses, Courses, CourseList |
Browse courses and download documents |
| Intradesk | Intradesk |
Browse and download files from the intradesk |
| My Documents | MyDocs |
Browse, download, upload and manage your personal documents |
| Results | Results, Reports, Periods |
Grades, evaluations, report cards |
| Messages | MessageHeaders, Message, Attachments, MessageComposerForm, RecipientType |
Inbox/outbox, compose, attachments, labels |
| Schedule | SmartschoolLessons, SmartschoolHours |
Daily schedules, class periods |
| Planner | PlannedElements, FutureTasks |
Assignments, deadlines, activities |
| Support | StudentSupportLinks |
School support resources |
| Student notes | StudentNotes, StudentAbsences, StudentNoteDetails |
Follow-up notes and absences registered by the school |
Documentation
Detailed usage guides with examples:
- Authentication - Credential setup and MFA
- Courses & Documents - Browsing courses and downloading files
- Intradesk - Intradesk file management
- My Documents - Personal document browsing, upload and download
- Results & Reports - Grades, evaluations, and report cards
- Messages - Inbox, compose/send, attachments, and message management
- Schedule & Agenda - Lessons, hours, and moment info
- Planner & Tasks - Planned elements and future tasks
- Student notes & absences - Follow-up notes and absences registered by the school
- Error Handling - Exception types and handling patterns
Development
git clone https://github.com/svaningelgem/smartschool.git
cd smartschool
uv sync
# Run tests
uv run pytest
# Linting & formatting
uv run ruff check .
uv run ruff format .
Requirements
- Python: 3.10+
- Core Dependencies: requests, beautifulsoup4, pydantic, pyyaml, logprise
- Optional:
pip install smartschool[mfa]for Google Authenticator 2FA support,pip install "smartschool[keyring]"to read your password from the OS keychain instead ofcredentials.yml(see Authentication)
License
GNU General Public License v3.0
Contributing
Contributions welcome! See CONTRIBUTING.md for the full guide (local setup, conventions, project layout). In short, please ensure:
- Tests pass:
uv run pytest - Code is formatted:
uv run ruff format . - Linting passes:
uv run ruff check . - Type stubs are updated:
./restub
Support
- Issues: GitHub Issues
- Changelog: CHANGELOG.md
Metadata
Release files for smartschool 0.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smartschool-0.12.0.tar.gz | 64.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smartschool-0.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 146.8 kB
Release files / smartschool-0.12.0.tar.gz
| Download URL | smartschool-0.12.0.tar.gz |
|---|---|
| Size | 64.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bfe36edb27d3762ae9eef5a5a09e3f985ae839df8cb40bfa256967b9806fa44
|
|
BLAKE2b-256 checksum How to use checksums |
9f88b062e6a22866e50c626248a3894a3e8b13f5f6f937f148d3fd5fd205cb23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / smartschool-0.12.0-py3-none-any.whl
| Download URL | smartschool-0.12.0-py3-none-any.whl |
|---|---|
| Size | 82.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f437674a43cf927fb21f225cef8581524da2e2559f992ccba66a269a2aa835d3
|
|
BLAKE2b-256 checksum How to use checksums |
198f335c6a0dff24e4030a4c1a3d27a8e2769a45c25c303eb98f9f23f208a57b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency log