Releases: lanis-mobile/LanisAPI
Releases · lanis-mobile/LanisAPI
v0.5.0.dev1
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
v0.4.0
- Now
long sessions
fully supported. authenticate()
now supportsNone
as authentication, this means it will just use the data fromsession.json
.LanisClient.save
property removed, now it will always save.- Always saves session data to a file when
LanisClient.close()
, useforce
inauthenticate()
to force a new session.
v0.4.0a
v0.3.2
v0.3.1
v0.3.0
- 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
- 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
Release v0.1.0
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