buttons_and_dials
Customizable configs for your packages.
Use case
You have your potato software that somewhere within it's contents contains
a file default-potato.toml describing some settings.
Let say you want to enable your users to customize those settings:
- by providing a file
potato-settings.tomlin the CWD. - by providing a toml file pointed by environment variable POTATO_FILE=some/path
- by passing command line arguments to some script
Then you should use buttons_and_dials.
Snippet
In your code, simply define
from buttons_and_dials import ConfigSet
configs = ConfigSet(
set_name='potato-settings',
initial_settings_path='internal/path/default-potato.toml'
check_cwd=True,
argv_prefix='--cfg'
)
And from now on, you can access attributes of configs object and enjoy.
Metadata
Release files for buttons-and-dials 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buttons_and_dials-0.1.5.tar.gz | 2.8 kB | Without provenance | Details for buttons_and_dials-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buttons_and_dials-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for buttons_and_dials-0.1.5-py3-none-any.whl |
Total release size: 6.3 kB
Security for buttons-and-dials 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.