Skip to main content

Smartschool Parser

PyPI version Python versions Tests codecov Quality Gate Status License: GPL v3

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, PlannedElementDetails, FutureTasks Assignments, to-dos, the timetable, meetings, deadlines
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:

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 of credentials.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
  • The docs describe the library as it is with your change
  • The first line of your pull request is written by you, whatever wrote the rest

Support

Metadata

Release files for smartschool 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartschool 0.13.0
File Size Uploaded Provenance Actions
smartschool-0.13.0.tar.gz 68.5 kB With provenance Details for smartschool-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smartschool 0.13.0
File Interpreter ABI Platform Actions
smartschool-0.13.0-py3-none-any.whl Python 3 none any Details for smartschool-0.13.0-py3-none-any.whl

Total release size: 155.3 kB

Release files / smartschool-0.13.0.tar.gz

Download URL smartschool-0.13.0.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a0e3edc88a41395a086c885cd482d700106b9f8b54e786810fd4bc39fbf53f60
BLAKE2b-256 checksum
How to use checksums
7555979c24606bb2005e1db45ae904eeb81159b1acea64cb3aac6f20ac37d5ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Release files / smartschool-0.13.0-py3-none-any.whl

Download URL smartschool-0.13.0-py3-none-any.whl
Size 86.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b8ce77d82b4c8ec97d3bbfaf8ab155156f67de29c6ea06371c6d1617778490d
BLAKE2b-256 checksum
How to use checksums
342ec515d257779b37fa173c833e70fcb5291a845347c00f819e2d9e7330ab24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Security for smartschool 0.13.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smartschool-0.13.0.tar.gz

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 Nov 22, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page