Skip to main content

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.13
  • 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

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsbapipy-0.0.13.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

dsbapipy-0.0.13-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file dsbapipy-0.0.13.tar.gz.

File metadata

  • Download URL: dsbapipy-0.0.13.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for dsbapipy-0.0.13.tar.gz
Algorithm Hash digest
SHA256 bc52806f0e12a009fb215463c72212db209752bc78385b9df92ba993908d37d2
MD5 aef218ec3647ab13c5f6ecdafed74be9
BLAKE2b-256 72f3948c6bcb25e2e9d53c9ae9bbe0ab6426109599ca5fb695cd60fe04fc5221

See more details on using hashes here.

File details

Details for the file dsbapipy-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: dsbapipy-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for dsbapipy-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 999654806bf9e925a2431157d73c2a1b9b2a56cf79672707114e76271f963107
MD5 02f048e732128c61ef7f8cb8510feb7b
BLAKE2b-256 952689340d84c52ff143702c185dc3908067edf96fb79d0123d16a3a765d3d83

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.13 This release

2 files

0.0.11

2 files

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page