Skip to content

Releases: kurwjan/LanisAPI

v0.5.0.dev1

05 Apr 17:10
Compare
Choose a tag to compare
v0.5.0.dev1 Pre-release
Pre-release

Erster Rewrite Release

Benutzbar ist es noch nicht wirklich, außer man will Custom Module hinzufügen oder nur den Vertretungsplan benutzen.
Dokumentation gibt es auch noch nicht wirklich.

Beispiel-Code

Wie man Vertretungen abruft:

from lanisapi import LanisClient, AccountInitialization

def main():
    client = LanisClient(AccountInitialization(6091, "dacjan.gapinski", "La-schGam-ing37456"))
    print(client.substitution.get())
      oder: print(client.modules.substitution.get())

main()

Wie man Custom-Module verwendet:

from lanisapi import LanisClient, AccountInitialization, HelloWorld

def main():
    client = LanisClient(AccountInitialization(6091, "vorname.nachname", "passwort"),
                         custom_modules=[HelloWorld])
    print(client.custom.hello_world.get())

main()

Wie man ein eigenes erstellt: (dieses ist auch in der lib → module/custom/hello_world.py)

# Example custom module

from ..module import Module


class HelloWorld(Module):
    _name = "hello_world"
    _link = None

    def get(self) -> str:
        return "Hello World!"

v0.4.1

26 Nov 00:45
Compare
Choose a tag to compare

Forgot to include the new dependency py-machineid.

Release notes from last release here: https://github.com/kurwjan/LanisAPI/releases/tag/v0.4.0.

v0.4.0

26 Nov 00:38
Compare
Choose a tag to compare
  • Now long sessions fully supported.
  • authenticate() now supports None as authentication, this means it will just use the data from session.json.
  • LanisClient.save property removed, now it will always save.
  • Always saves session data to a file when LanisClient.close(), use force in authenticate() to force a new session.

v0.4.0a

20 Nov 22:29
Compare
Choose a tag to compare
v0.4.0a Pre-release
Pre-release
  • Now securely storing session data after LanisClient.close() and get it with LanisClient.authenticate().

Install it with pip install lanisapi==0.4.0a0

v0.3.2

19 Nov 02:59
Compare
Choose a tag to compare
  • Get Lanis applet folders.
  • Get responsible of a calendar event suggested by @baum-eule, fixes #18

v0.3.1

18 Nov 20:49
Compare
Choose a tag to compare
  • Fixed #20 from @baum-eule
  • Added programming guidelines / help to docs
  • More bug reporting documentation

v0.3.0

18 Nov 04:22
dd88deb
Compare
Choose a tag to compare
  • Faster authentication
  • Get all web applets
  • Check availability of supported web applets
  • Log HTML elements

Full Changelog: v0.2.0...v0.3.0

v0.2.0

31 Oct 15:28
1f5faa2
Compare
Choose a tag to compare
  • The code is now cleaner not cramped into one file anymore.
  • Added fetching conversations.
  • And many more features, like exception handling.

Full Changelog: v0.1.1...v0.2.0

v0.1.1

13 Oct 21:48
Compare
Choose a tag to compare
  • Removed the fixed school id in authentication_functions.py.

Release v0.1.0

09 Oct 20:41
6a52f35
Compare
Choose a tag to compare

v0.1.0

  • Refactored parts of the code
  • Added docstrings
  • Removed download() function and its entire class
  • Now using httpx.Client() so you need to use LanisClient.close() at the end of the session
  • Removed funny language in README