Skip to main content

API fuer die DSBMobile Vertretungsplan-App

Project description

DSBApi

Eine API für die DSBMobile Vertretungsplan-Lösung, welche viele Schulen benutzen.

  • Python 3
  • Funktioniert Stand 02.10.2020 (Jetzt via Android-API (nach Problemen in 0.0.3), seit 2015 stable
  • Aktuell in Version 0.0.14
  • Aktuell stable
  • Units 2020 nicht vollständig unterstützt, PRs welcome, aber Kompatibilität berücksichtigen!

Installation:

pip3 install dsbapipy

oder manuell vom Source Code.

Datensatz:

JSON Liste an Arrays. Ein Array sieht so aus:

Key Value Notiz
type Vertretung Art des Eintrags
class 5D Klasse
lesson 12 Schulstunde
room R404 (Neuer) Raum
new_subject M-GK1 Neuer Kurs
subject IF-LK4 Ursprüngliches Fach / Kurs
new_teacher NEUM Neuer Lehrer
teacher BIMM Ursprünglicher Lehrer
date 01.01.2019 Datum
day Montag Wochentag
updated 02.02.2019 12:13 Letztes Update

Hinweise zum Key "class"

Der key "class" wird speziell behandelt, indem der Inhalt der Schulklasse bei der Zeichenfolge ", " geteilt wird. Diese Teilung wird verwendet um bei kombinierten Klasseneinträgen, die Daten für jede Klasse einzeln aufzusplitten.

Implementierung:

Beispiel 1

import dsbapi

dsbclient = dsbapi.DSBApi("username", "password")
entries = dsbclient.fetch_entries() # Rückgabe einer JSON Liste an Arrays
print(entries[0]["date"]) # Datum des ersten Eintrags

Beispiel 2: Anderes Tabellenformat

Schulen sind relativ frei in der Gestaltung Ihrer Datensätze. Daher kann der oben beschriebene Standard wiefolgt überschrieben werden:

import dsbapi

ownFields = ['class','lesson','new_subject','room','subject','new_teacher','type','text']

dsbclient = dsbapi.DSBApi("username", "password", tablemapper=ownFields)
entries = dsbclient.fetch_entries() # Rückgabe einer JSON Liste an Arrays
print(entries[0]["date"]) # Datum des ersten Eintrags

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

rexdsb-0.0.14.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

rexdsb-0.0.14-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file rexdsb-0.0.14.tar.gz.

File metadata

  • Download URL: rexdsb-0.0.14.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for rexdsb-0.0.14.tar.gz
Algorithm Hash digest
SHA256 b01b161d7faa21ac5fbac807a0635090c57308cd370e8125ca35fd9d0ad13a48
MD5 e3c4b2c11c6f6e394b5310c9ebe79d0e
BLAKE2b-256 ddbd92f120f4f75be1368574099fdfdd72fb92e372559d8142ce889c16dafe05

See more details on using hashes here.

File details

Details for the file rexdsb-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: rexdsb-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for rexdsb-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b75214b803897dbd1f4b74a1aa00137ae6bdfbaf19e3ebedd6385613e7ae7cd2
MD5 96c7fe96cf973a67c523c58b992e085b
BLAKE2b-256 ea51271ea0ba31de4d848fbb592cfaeb1718195607097bcbc5b3acee6956ae09

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