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.
Saby Company

Saby Company
Delebio, Italy

Remote
Intermediate
Node.js

Featured Partners

Related Articles

View all articles
BB
Benedikt Bischof
Python Basics
2021 was a year of celebration for one of the most popular programming languages (according to Stack Overflow) as it turned 30. We are talking about Python of course.Its story begins in 1989 around Christmas and Guido van Rossum thought about a holid...
Python Basics
DC
Daniel Cranney
Stephan Gillich - Bringing AI Everywhere
In the ever-evolving world of technology, AI continues to be the frontier for innovation and transformation. Stephan Gillich, from the AI Center of Excellence at Intel, dove into the subject in a recent session titled "Bringing AI Everywhere," sheddi...
Stephan Gillich - Bringing AI Everywhere
CH
Chris Heilmann
Dev Digest 125 - Duck and Cover
This issue was written live at the WeAreDevelopers World Congress in Berlin with us being incredibly busy, but this shouldn't mean you don't get some hot resources. News and ArticlesLet's start with AI news: Google and Microsoft consume more power th...
Dev Digest 125 - Duck and Cover

From learning to earning

Jobs that call for the skills explored in this talk.