Skip to main content

A Python package for retrieving information from magister

Project description

Image

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

Disclaimer:

Please note: Using unauthorized APIs to access Magister might be 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 at least 2 schools so far so it is to be expected. If you want to help add a feature it would be great as well! :D Also please create an issue if you have any questions!

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.
with MagisterSession() as session:
    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].get_value()

    print("Schedule in json:", 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.51.tar.gz (17.8 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.51-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magisterpy-0.1.51.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for magisterpy-0.1.51.tar.gz
Algorithm Hash digest
SHA256 6ccc91ee2f93c0b9be7f3b075a930553b872da40b3daeeee041cabcb545a4b8d
MD5 0cfde68897c24ca76096d30ef7e639fa
BLAKE2b-256 69f85ca8128eaf18206c20a715ce853fdcb76c98f86260d5b110f4891a4ef97c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magisterpy-0.1.51-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for magisterpy-0.1.51-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6e74380ac930eee219e0bcf31b138d3805e7f353a383105b3553dfc32c1730
MD5 39b3fb166cf69f6465d009f57709b9e7
BLAKE2b-256 2ca7d888a2979dea5bafbe43b78650093e4ff6a10cf09fbb7cb9017cb5a89cab

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