Proposal: dict config
See original GitHub issueSince dictionary configs become very popular (like django.conf.settings.DATABASES) or logging configuration style, shouldn’t it be better to make one setting like a SESSION_REDIS which will looks like this?
SESSION_REDIS = {
'HOST': 'localhost',
'PORT': 6379,
'DB': 0,
'PREFIX': 'session',
}
Also, like in a Django, if HOST starts with a ‘/’, it would assumes, that it is an Unix socket, and empty string should assumes an localhost address.
Issue Analytics
- State:
- Created 11 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Tutorial 1: Learn about Configs - MMAction2's documentation!
Some config dicts are composed as a list in your config. For example, the training pipeline data.train.pipeline is normally a list e.g. [dict(type='SampleFrames ......
Read more >python - logging.config.dictConfig does not seem to work
What is wrong with this code? It prints out Whatsup to the stdOut, and nothing to the file in /tmp. It creates the...
Read more >logging.config — Logging configuration
Takes the logging configuration from a dictionary. The contents of this dictionary are described in Configuration dictionary schema below.
Read more >Configuration - Ads API
Configuration using YAML file · Configuration using environment variables · Configuration using a YAML string · Configuration using a dict · Configuration Fields....
Read more >Config Dictionary in ReFramework without Excel
By using this package you can get the contents of Data\Config.xlsx file in the Config (Dictionary<String,Object>) without using Excel.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Supported in the latest release 0.6. Configuration through env variables will be considered for a next release
As long as one can create a dict from an environment variable!