Skip to main content

Handles weekly assignment PDFs as exported by "web.sta"

Project description

sitzungsdienst

License PyPI Coverage Build

A simple Python utility for working with weekly assignment PDFs as exported by web.sta.

Getting started

Simply install all dependencies inside a virtual environment to get started:

# Clone repository & change directory
git clone https://codeberg.org/S1SYPHOS/sitzungsdienst && cd sitzungsdienst

# Set up & activate virtualenv
poetry shell

# Install dependencies
poetry install

Usage

Using this library is straightforward:

from sitzungsdienst import StA

# Pass file path (or its stream) & retrieve data
court_dates, express_dates = StA.run('path/to/file.pdf')

# Use a subset by filtering it
filtered_court = court_dates.filter(['alice', 'bob'])
filtered_express = express_dates.filter('john')

# Get iCalendar data
ics = filtered_court.data2ics()
print(ics)

##
# BEGIN:VCALENDAR
# VERSION:2.0
# ..
# ..

If you want to see it in action, head over to the sitzungsapp!

Happy coding!

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

sitzungsdienst-2.3.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

sitzungsdienst-2.3.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file sitzungsdienst-2.3.0.tar.gz.

File metadata

  • Download URL: sitzungsdienst-2.3.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic

File hashes

Hashes for sitzungsdienst-2.3.0.tar.gz
Algorithm Hash digest
SHA256 40d0f43a018154919df43c22074debfb5021d0b5a61fb6648dd89c33af6005ae
MD5 1e4f721d6673c23e2b458edeb53a5117
BLAKE2b-256 1d8186de116426940eda2aa241d9b510527ebc1842f90bc306e1da956071c603

See more details on using hashes here.

File details

Details for the file sitzungsdienst-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: sitzungsdienst-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic

File hashes

Hashes for sitzungsdienst-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f1eb02b9d2c7c6f805b393d9ed21bfc9bfc3af562fd642f6e6b7c17eddbc67
MD5 ad8d4f0f3f491bd526d1baad325cd4bd
BLAKE2b-256 f394667b7ace457e918daa8d3179175fbe5ceea7e423fabb87da480777f993a9

See more details on using hashes here.

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