What is the best practice for injecting configuration into a python application

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. Dependency Injector

    Dependency injection framework for Python

    One approach is to pass this config as a variable to every class it is required, which I dont prefer. Another option is to annotate the config class as singleton and create the config object at every place where I need them. I also came across this library called Dependency_Injector. https://python-dependency-injector.ets-labs.org/ This seems a bit heavy weight for my use case though. I am looking forward to know how other solve this problem

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. hyperparameter

    Hyperparameter, Make configurable AI applications.Build for Python hackers.

    you can take a look at https://github.com/reiase/hyperparameter, a scoped, thread-safe config object that is lightweight enough. There is no need to modify too much code:

  4. towhee

    Towhee is a framework that is dedicated to making neural data processing pipelines simple and fast.

    The package now is part of towhee, you can use the latest version of hyper parameter by python from towhee import param_scope()

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Medical RAG Research with txtai

    4 projects | dev.to | 23 Jun 2025
  • Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer

    1 project | news.ycombinator.com | 16 Jun 2025
  • Predictive Maintenance Systems for Cleaning Robots: Boosting Efficiency Through Smart Tech

    1 project | dev.to | 5 Jun 2025
  • My personal favorite MCP server which has became part of my life

    10 projects | dev.to | 27 May 2025
  • None of the top 10 projects in GitHub is actually a software project 🤯

    6 projects | dev.to | 10 May 2025

Did you know that Python is
the 2nd most popular programming language
based on number of references?