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.2.tar.gz
(19.6 kB
view details)
Built Distribution
File details
Details for the file sitzungsdienst-2.0.2.tar.gz
.
File metadata
- Download URL: sitzungsdienst-2.0.2.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c150ec7d205bc94bab18a558e0a17f63eff7985b79b39fbca5ad8bd1410b8af1 |
|
MD5 | ec794bc447c9ee4e55c76cf08cad7682 |
|
BLAKE2b-256 | 43f2b930d87806b5dc15a42258ddc26bf27a567f98e23750ddbd85a3715fbc96 |
File details
Details for the file sitzungsdienst-2.0.2-py3-none-any.whl
.
File metadata
- Download URL: sitzungsdienst-2.0.2-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b87e2f3a715505ce1af7bc1e450398d48d918cf5ef697f1374707dd3657b3560 |
|
MD5 | 6ad9d83e7165704e8e1008c022bdf5ac |
|
BLAKE2b-256 | 6a9cf415b1eac1e1c862339850fad6d56acc11367aba0a7600968191eec5c42f |