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.runs('path/to/file.pdf')
# You may also pass multiple file paths (or their streams)
court_dates, express_dates = StA.runs(['path/to/file1.pdf', 'path/to/file2.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
# ..
# ..
Note: Since all data methods are using async, you should either await them (inside your own asyncio context) or call them using asyncio.run() (see below).
import asyncio
from sitzungsdienst import StA
async def main(file):
# ..
return await StA.run(file)
# Retrieve data
data = asyncio.gather(*[main(file) for file in files])
# ..
If you want to see it in action, head over to the sitzungsapp!
Happy coding!
Metadata
Release files for sitzungsdienst 2.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sitzungsdienst-2.3.4.tar.gz | 22.7 kB | Without provenance | Details for sitzungsdienst-2.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sitzungsdienst-2.3.4-py3-none-any.whl | Python 3 | none | any | Details for sitzungsdienst-2.3.4-py3-none-any.whl |
Total release size: 46.4 kB
Release files / sitzungsdienst-2.3.4.tar.gz
| Download URL | sitzungsdienst-2.3.4.tar.gz |
|---|---|
| Size | 22.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2943276e54f585142f52bca22daa725ae9e14a5fd1b80a730c09ca83b13a3a59
|
|
BLAKE2b-256 checksum How to use checksums |
7551a6535453ef532c7e5cf11d650d9c480b5209e85b86cf693c537d9f737b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
|
Release files / sitzungsdienst-2.3.4-py3-none-any.whl
| Download URL | sitzungsdienst-2.3.4-py3-none-any.whl |
|---|---|
| Size | 23.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d30e09c4c13e53aa34f1077e73be9643859da0a6bde4c84c08848608232342a
|
|
BLAKE2b-256 checksum How to use checksums |
0fc6aa3615f152d2c25bd1b0d2dfad7ac2bca6af7f9cf8fc259b7135d7d06f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
|
Security for sitzungsdienst 2.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.