Skip to content

Instantly share code, notes, and snippets.

@qwertxzy
qwertxzy / pipeline_test.py
Created August 14, 2023 14:19
A pipeline of functions to be applied to an initial parameter
class Pipeline:
steps = []
def process(self, param, start_index=0):
'''Begin processing'''
for step in self.steps[start_index:]:
match param:
case tuple():
param = step(*param)
case dict():
@qwertxzy
qwertxzy / terminvergabe.py
Created November 25, 2022 09:35
Abfragen der Terminvergabeseite des Einwohnermeldeamts Darmstadt für einen Termin mit Telegram Notification
import requests
from pathlib import Path
import os.path
# get secrets from environment variables
telegram_bot_secret = os.getenv("TELEGRAM_BOT_SECRET")
telegram_chat_id = os.getenv("TELEGRAM_CHAT_ID")
# urls

Keybase proof

I hereby claim:

  • I am qwertxzy on github.
  • I am qxy (https://keybase.io/qxy) on keybase.
  • I have a public key ASDhNKFiM8OZz2rDGo8hs8OwLnQEDzdeVrKeFYKERJpVRgo

To claim this, I am signing this object: