SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python Configuration Projects
Hydra is a framework for elegantly configuring complex applications (by facebookresearch)Project mention: Config management for deep learning | reddit.com/r/Python | 2023-03-10
I kind of built this due to frustrations with Hydra. Hydra is an end to end framework, it locks you into a certain DL project format, it decides logging, model saving and a whole host of things. For example Hydra can do the same config file overwriting that I allow but you have to store the config file with the name config.yaml inside a specific folder. On top of that hydra doesn’t let you return the config file from the main function so you have to put all the major logic in the main function itself (link), the authors claim this is by design. I can find Hydra useful for a mature less experimental project. But in my robotics and ML research, I like being able to write code where I want and integrating it how I want, especially when debugging for which I think this package is useful. TLDR; If you just want the config file functionality use my package, if you want a complete DL project manager use Hydra. While hydra implements this config file functionality, it also adds a lot of restrictions to project structure that you might not like.
Reads key-value pairs from a .env file and can set them as environment variables. It helps in developing applications following the 12-factor principles.Project mention: Writing unit tests, constants, and source control (GIT) question!? | reddit.com/r/learnpython | 2023-03-25
Locally you may want to use a .env file that is also in .gitignore and python-dotenv to auto activate them. Also having an .env.template is also a good idea to help others working on the project know what they need to set in order for things to work.
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Configuration Management for Python ⚙Project mention: Dynamic s3 path while reading pyspark | reddit.com/r/dataengineering | 2022-05-29
Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.Project mention: Tricks for starting a new project | reddit.com/r/django | 2022-11-30
I used to do this but recently switched to using environment variables and now prefer this approach. Essentially you keep the single settings.py file that is generated with startproject, and use os.environ or os.getenv to set certain settings. Check out the FeedHQ settings.py for an example. I use direnv to automatically set my environment variables on my local machine, but django-environ is a popular alternative.
Strict separation of config from code.Project mention: How to send emails using python django ? | dev.to | 2022-10-10
Documentation for python decouple: https://github.com/henriquebastos/python-decouple/ Documentation for smtplib: https://docs.python.org/3/library/smtplib.html
A library for users to write (experiment in research) configurations in Python Dict or JSON format, read and write parameter value via dot . in code, while can read parameters from the command line to modify values. 一个供用户以Python Dict或JSON格式编写（科研中实验）配置的库，在代码中用点.读写属性，同时可以从命令行中读取参数配置并修改参数值。Project mention: Commandline-config: A library for users to write (experiment in research) configurations in Python Dict format, while can read parameters from the command line. 一个供用户以Python Dict或JSON格式编写（科研中实验）配置的库，同时可以从命令行中读取参数。 | reddit.com/r/Python | 2022-09-20
Type-safe YAML parser and validator.Project mention: The new type of SQL injection | reddit.com/r/ProgrammerHumor | 2023-03-15
you can stick to a subset of YAML syntax (e.g. strictYAML)
Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.
simplified environment variable parsingProject mention: Python scripting - How to hide API static password? | reddit.com/r/networking | 2022-06-15
I recommend this simple library for that purpose
SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter OptimizationProject mention: [D]How to optimize an ANN? | reddit.com/r/MachineLearning | 2022-08-12
You can use Optuna, SMAC or hyperopt
Loads environment variables from .env
HOCON parser for PythonProject mention: I'm trying to load a JSON file but I get an error. | reddit.com/r/learnpython | 2023-03-09
Yeah, if it were one, maybe pyhocon could handle it easily. I've only used this library as a cli from someone else, but it does its work
painless YAML config files for Python
Human readable and writable data interchange formatProject mention: The yaml document from hell | reddit.com/r/programming | 2023-01-12
As /u/astatine said, an excellent but under-recognized alternative syntax for configuration files is NestedText, where everything is a string unless the ingesting code says otherwise, and there is no escaping needed ever.
Python 3+ compatible port of the configobj library
Configuration UI for Home AssistantProject mention: 2022-7-24 TrueCharts catalog charts update | reddit.com/r/Xstar97TheNoob | 2022-07-24
hassconfigurator - Home Assistant online configurator container from https://github.com/danielperna84/hass-configurator
A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".Project mention: Use the XDG Base Directory Specification | news.ycombinator.com | 2023-03-23
Start with pythons “projectdirs”, which refuses to allow mac systems to use XDG or at least have that option.
Create powerful Hydra applications without the yaml files and boilerplate code.Project mention: [Project] I built a minimal stateless ML project template built on my current favourite stack | reddit.com/r/MachineLearning | 2023-02-02
It provides mature configuration support via [Hydra-Zen](https://github.com/mit-ll-responsible-ai/hydra-zen) and automates configuration generation via [decorators](https://github.com/BayesWatch/minimal-ml-template/blob/af387e59472ea67552b4bb8972b39fe95952dd8a/mlproject/decorators.py#L10) implemented in this repo.
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Declarative and extensible library for configuration & code separation
Easy saving and switching between multiple KDE configurations.Project mention: Beste way to 'copy kde' to another computer? | reddit.com/r/kde | 2022-06-24
LKI's dotfiles. (by LKI)
Automatic registry design-pattern library for mapping names to functionality.Project mention: Which not so well known Python packages do you like to use on a regular basis and why? | reddit.com/r/Python | 2022-08-26
I use my library AutoRegistry pretty regularly. Its very useful anytime you need to define an interface, which happens to be a lot of projects.
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python Configuration related posts
Writing unit tests, constants, and source control (GIT) question!?
1 project | reddit.com/r/learnpython | 25 Mar 2023
Config management for deep learning
3 projects | reddit.com/r/Python | 10 Mar 2023
Show HN: Lightweight YAML Config CLI for Deep Learning Projects
2 projects | news.ycombinator.com | 10 Mar 2023
Make systemd better for Podman with Quadlet
6 projects | news.ycombinator.com | 20 Feb 2023
Does anybody have issues with AutoKey (GNU/Linux) with GNU/Emacs?
3 projects | reddit.com/r/emacs | 25 Jan 2023
Need help running Django at a local machine after deploying it
1 project | reddit.com/r/django | 22 Jan 2023
The YAML Document from Hell
19 projects | news.ycombinator.com | 12 Jan 2023
A note from our sponsor - #<SponsorshipServiceOld:0x00007f160cc04b98>
www.saashub.com | 27 Mar 2023
What are some of the best open-source Configuration projects in Python? This list will help you: