Skip to main content

A unofficial python api for Lanis

Project description

[README DE] [README EN]

LanisAPI

⚠ Notice

Because the Schulportal Hessen changes quickly and is very fragmented, can some functions at specific schools or after a time not be working anymore.

What is this?

It's an unofficial Python library for the Schulportal Hessen. Also available on PyPi.

Features

  • Fetch homework
  • Fetch substitution plan
  • Fetch calendar data

Overview of future Features, Problems and other things here.

How do I install it?

pip install lanisapi

Required is Python 3.11. (older versions should definitely work too but I didn't tested it.)

Example

This example gives the substitution plan.

from lanisapi import LanisClient

def main():
    client = LanisClient("schoolid", "name.lastname", "password")
    client.authenticate()
    print(client.get_substitution_plan())
    client.close()
    
if __name__ == "__main__":
    main()

More infos at the wiki.

How can I help?

  1. You can report Problems at Issues.
  2. You can suggest Ideas at Issues.
  3. Contributing: You can contribute to this project. If you're new to contributing, look here.

Credits

The Javascript project SPHclient from @alessioC42 helped me to understand the Schulportal Hessen.

The Android-App sph-planner from @koenidv helped me to understand the Level 2 encryption.

Other projects that didn't helped me but are cool:

Notice

This project isn't officially related to the Schulportal Hessen. It's only a unofficial library, supported by the community.

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

lanisapi-0.1.0.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

lanisapi-0.1.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

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