A simple Python utility for working with 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:
# Set up & activate virtualenv
virtualenv -p python3 venv
# shellcheck disable=SC1091
source venv/bin/activate
# Install dependencies, either ..
# (1) .. from PyPi (stable)
python -m pip install sitzungsdienst
# (2) .. from repository (dev)
python -m pip install --editable .
Usage
Using this library is straightforward:
from sitzungsdienst import Sitzungsdienst
# Pass file path (or its stream)
sta = Sitzungsdienst('path/to/file.pdf')
# Retrieve data
data = sta.extract_data()
# Use a subset by filtering it
filtered = sta.filter(['alice', 'bob'])
# Extract assignees only
assignees = sta.extract_people()
# Fetch express service
express = sta.extract_express()
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.0.1.tar.gz
(19.6 kB
view hashes)
Built Distribution
Close
Hashes for sitzungsdienst-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 199aebedbf9aa948df5dac9403a4538bc54c79e0b5e2f6b9f8b8db9ceb9f4bc4 |
|
MD5 | eb72836d94a5ccaf7569afe792ba4830 |
|
BLAKE2b-256 | b46418e6e53462b9fd2228438460b91a5cc62a4df228941089d942ef4c7e5745 |