Skip to main content

Unofficial API interface to the smartschool system.

Project description

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
pip install poetry
poetry install

# Run tests
poetry run pytest

# Linting & formatting
poetry run ruff check .
poetry run ruff format .

Requirements

  • Python: 3.10+
  • Core Dependencies: requests, beautifulsoup4, pydantic, pyyaml, logprise
  • Optional: pip install smartschool[mfa] for Google Authenticator 2FA support

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: poetry run pytest
  • Code is formatted: poetry run ruff format .
  • Linting passes: poetry run ruff check .
  • Type stubs are updated: ./restub

Support

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

smartschool-0.9.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartschool-0.9.0-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file smartschool-0.9.0.tar.gz.

File metadata

  • Download URL: smartschool-0.9.0.tar.gz
  • Upload date:
  • Size: 53.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartschool-0.9.0.tar.gz
Algorithm Hash digest
SHA256 735176f87fee7da4791c672019fc6816da517a735c11e8ceee9bbabfa2cf9e5b
MD5 89eeaf7ca196ccec60370548619d23f7
BLAKE2b-256 e60433a50399bd6906f12882078b425d990ad3b036433f4896cef8dd22a98e61

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartschool-0.9.0.tar.gz:

Publisher: release.yml on svaningelgem/smartschool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smartschool-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: smartschool-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartschool-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2780a3212c2e56730404fa0903a5f79f28742e8b614cc9107b49ee54867d140
MD5 c5f667093a2d79fce319d7662c5691be
BLAKE2b-256 37ae2641da3978f74134edd81ca70c21a636a1d909a41a0f6c344f2cc0443471

See more details on using hashes here.

Provenance

The following attestation bundles were made for smartschool-0.9.0-py3-none-any.whl:

Publisher: release.yml on svaningelgem/smartschool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page