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.3.tar.gz
(19.6 kB
view details)
Built Distribution
File details
Details for the file sitzungsdienst-2.0.3.tar.gz
.
File metadata
- Download URL: sitzungsdienst-2.0.3.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 | 11c3b32253251ce510c0bce0c6f654faa8e42e61f8379381fe804b08e2846dd5 |
|
MD5 | 7c80e9e4f0b5e69d29d0ed01646b0525 |
|
BLAKE2b-256 | 905e44e1cb1bde3b9340432f34a182afd7ab1dd62c1615d31fe178fbc988052a |
File details
Details for the file sitzungsdienst-2.0.3-py3-none-any.whl
.
File metadata
- Download URL: sitzungsdienst-2.0.3-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 | dc35b9d6d2f577922b9a16fff6cf978c956ee8906d2b184db126a448cbf4e519 |
|
MD5 | 31822239afa48ead91796e5683ff9ba2 |
|
BLAKE2b-256 | b42a9a8679078831baa4186d0d4e2a53e5d7216af64d8e730471ed118f9dd5ba |