Handles weekly assignment PDFs as exported by "web.sta"
Project description
sitzungsdienst
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
Release history Release notifications | RSS feed
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.1.tar.gz
(22.0 kB
view details)
Built Distribution
File details
Details for the file sitzungsdienst-2.3.1.tar.gz
.
File metadata
- Download URL: sitzungsdienst-2.3.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | feffac40cd6258c4a2452beaa18a0be8a15235daced051fbf45ac7b121c352e6 |
|
MD5 | 953df39edeefeda684da180fa798af80 |
|
BLAKE2b-256 | dea37ca17530e69d498873a5cbe0caadb92128e09bef5e4868d0c95c6e368cdf |
File details
Details for the file sitzungsdienst-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: sitzungsdienst-2.3.1-py3-none-any.whl
- Upload date:
- Size: 23.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bcf17106e9b6b6b64f09697bbaa8f314b7a5496129d4b76f58ff8a5890c643d |
|
MD5 | 341bb49d80836ec6067526c18da600db |
|
BLAKE2b-256 | 498ff3cb986814103aad0987a7de5d30258bf5fbb1393bea914258f0ab3fdd00 |