Skip to main content

A Python package for retrieving information from magister

Project description

MagisterPY

This library will help you interact with your magister account using python!

Disclaimer:

Please note: Using unauthorized APIs to access Magister is against Magister’s Terms of Service. By using this library, you assume all responsibility and accept any risks associated with breaching these terms. For more details, please refer to Magister's Terms of Service. (https://magister.nl/over-ons/juridische-zaken/)

Installation

pip install git+https://github.com/H3LL0U/MagisterPy.git

or

pip install MagisterPy

Contributing

Feel free to create an issue if something doesn't work. It's only been tested on a singular school so far so it is to be expected. If you want to help add a feature it would be great as well! :D

Basic usage

The following code snippet demonstrates how to create a session, log in, and retrieve your schedule and recent grades:

from magisterpy import MagisterSession

# Create a new session and log in
session = MagisterSession()
session.login(school_name="School_name", username="your_username", password="your_password")

# Get schedule for a specific date range
my_schedule = session.get_schedule("2024-11-03", "2024-11-10")

# Get the most recent grade
my_most_recent_grade = session.get_grades(top=1)[0]["waarde"]

print("Schedule:", my_schedule)
print("Most Recent Grade:", my_most_recent_grade)

With MagisterPy, you can access and manage your Magister account directly from Python, automating repetitive tasks and integrating your school data into your projects. We hope you find it helpful! More functionality to come!

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

magisterpy-0.1.22.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

magisterpy-0.1.22-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file magisterpy-0.1.22.tar.gz.

File metadata

  • Download URL: magisterpy-0.1.22.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for magisterpy-0.1.22.tar.gz
Algorithm Hash digest
SHA256 ae0d5a45a06fa781994d0183719368ba12d48d0e95ab3334dab7f3c7d4f42ad3
MD5 b06bd47d73c210a6b78a13d05b208904
BLAKE2b-256 d76450bd36f501ff08b3354a3bdf6ff6f77db64972fba9ffc442cb69e81de364

See more details on using hashes here.

File details

Details for the file magisterpy-0.1.22-py3-none-any.whl.

File metadata

  • Download URL: magisterpy-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for magisterpy-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 95ab0927f8c2e0d3b9b52635f5c25780f24eaa2561cdcc6a89941acfe91803a6
MD5 849c29e8f06f40669fe30bfe23c594bd
BLAKE2b-256 0f1cbebc32c9d33878ff81d7864626ae69b3193de72099728949dfd7cee3659f

See more details on using hashes here.

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