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, FutureTasks Assignments, deadlines, activities
Support StudentSupportLinks School support resources

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

Support

Metadata

Release files for smartschool 0.11.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.11.0
File Size Uploaded
smartschool-0.11.0.tar.gz 58.7 kB Details

Built distribution (wheel)

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

Total release size: 134.1 kB

Release files / smartschool-0.11.0.tar.gz

Download URL smartschool-0.11.0.tar.gz
Size 58.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d552375bb5da3dffbeb4be2dfdde895b420a708e02ae069e7175e09502e2a9c6
BLAKE2b-256 checksum
How to use checksums
bfa1b0d9dcf309c88bf60511cb4d1b1a7473b75cded13f21a00aeeb832cccfda
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 3, 2026.

Transparency log

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

Download URL smartschool-0.11.0-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccbb66278abe3caec65e8fac49fa76ee68f8501ee82918a8750f44314eef55f5
BLAKE2b-256 checksum
How to use checksums
c4f72aa0965dbd016dd41371a2f7e3b04c6c6fd09841a58dd07e73898596d13f
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.1

2 release files

0.12.0

2 release files

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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