Python: Nested with Statements

I can easily write nested with statements in Python.

February 7, 2025 · 1 min · 104 words · Chris Pratl

Check if a string is a web URL via a regular expression

I want to check if a string is an URL and created a regular expression for that.

July 9, 2024 · 2 min · 409 words · Chris Pratl

Algorithm: Reading multiple JSON objects from a file

I receive a file with multiple JSON objects in a row. I want to decode them one after another.

October 5, 2023 · 4 min · 793 words · Chris Pratl

My Jupyter Notebook Setup

Documentation how I have setup my Jupyter Notebook Setup.

October 3, 2023 · 3 min · 620 words · Chris Pratl

Poll data from an Azure Storage Account Blob into a Python Azure Function

How to read a JSON document from an Azure (Blob) Storage Account and use that in an Azure Function.

September 11, 2023 · 1 min · 144 words · Chris Pratl

Deploy a Python FastAPI app on Azure App Services

I want to deploy a FastAPI app via Azure App Services.

April 19, 2023 · 2 min · 244 words · Chris Pratl

Python's walrus operator in list comprehension

I found a first use case where I actually need Python’s walrus operator!

April 5, 2023 · 2 min · 259 words · Chris Pratl

Timezones are important!

I failed with time zones.

April 3, 2023 · 1 min · 116 words · Chris Pratl

Confluent Kafka Python Consumer: Reported Offsets

In edge cases, a consumer does not report the offsets I assumed he would report.

March 3, 2023 · 5 min · 880 words · Chris Pratl