Oliver Bestwalter

Automagic Configuration in Python

Stop writing configuration files. Learn a Python-native approach that makes configuration safe, testable, and nearly invisible for your team.

Automagic Configuration in Python
#1about 6 minutes

An introduction from an in-house developer's perspective

The speaker shares his background working in small, autonomous teams and how that experience shaped his approach to software configuration.

#2about 7 minutes

Adopting a philosophy of configuration without configuration files

The talk focuses on solving configuration for internal systems by leveraging Python's internals rather than focusing on performance or complex code.

#3about 5 minutes

Redefining the blurry line between configuration and constants

Configuration is defined not as a variable or a true constant, but as a value derived from the environment that remains fixed after startup.

#4about 4 minutes

Practical examples of using Python for configuration

Classic configuration files are often unnecessary for internal Python projects, as demonstrated by tools like Sphinx, Plotly, and Nox.

#5about 6 minutes

How Python's module execution and import model works

Code at the module level executes during import, and the execution path differs when running a file as a script versus importing it as a module.

#6about 10 minutes

Exploring the mutability of Python constants and attributes

Most "constants" in Python, including system attributes, can be modified at runtime, highlighting the need for patterns that enforce immutability.

#7about 6 minutes

Implementing a testable singleton with read-only properties

A singleton class using the @property decorator provides a sweet spot for creating dynamic, read-only configuration values that are easily testable.

#8about 6 minutes

Q&A on versioning, runtime changes, and common mistakes

The speaker answers audience questions about version handling in a monorepo, why configuration shouldn't change at runtime, and potential pitfalls of these patterns.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Dev Digest 194: AI vs. Version Control, Password Louvre & Cursed Webdev
Inside last week’s Dev Digest 194 . 🧠 Learn how to become an AI-native software engineer 🤷‍♂️ How can you stand out when anyone can build anything? 👂 Whisper Leak allows listening to encrypted chats 🐝 What’s new the OWASP2025 Top Ten List 🙅‍♀️ Curse...
Dev Digest 194: AI vs. Version Control, Password Louvre & Cursed Webdev
CH
Chris Heilmann
With AIs wide open - WeAreDevelopers at All Things Open 2025
Last week our VP of Developer Relations, Chris Heilmann, flew to Raleigh, North Carolina to present at All Things Open . An excellent event he had spoken at a few times in the past and this being the “Lucky 13” edition, he didn’t hesitate to come and...
With AIs wide open - WeAreDevelopers at All Things Open 2025
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.

Python & AWS Developer

Python & AWS Developer

Paradigma Digital
Municipality of Murcia, Spain

Python
Docker
Jenkins
Terraform
Kubernetes
+1
Python & AWS Developer

Python & AWS Developer

Paradigma Digital
Municipality of Madrid, Spain

Python
Docker
Jenkins
Terraform
Kubernetes
+1
Python & AWS Developer

Python & AWS Developer

Paradigma Digital
Municipality of Palma, Spain

Python
Docker
Jenkins
Terraform
Kubernetes
+1