application_settings - version 0.5.0
"You write the dataclasses to define parameters for configuration and settings, application_settings takes care of the logic."
What and why
Application_settings is a package for providing a python application or library with parameters for configuration and settings. It uses toml or json files that are parsed into dataclasses. This brings some benefits:
- Minimal work for the developer of the application / library
- Parameters are typed, which allows for improved static code analyses.
- IDEs will provide helpful hints and completion when using the parameters.
- More control over what happens when a file contains mistakes (by leveraging the power of pydantic).
- Possibility to specify defaults when no file is found or entries are missing, i.e., aim for "zeroconf".
- Configuration parameters are read-only (i.e., changed by editing the config file); we
recommend (and support) the use of
tomlfor this, which is a human-oriented, flexible, standardardized and not overly complex format. - Settings parameters are read-write (i.e., mostly changed via the UI of the
application); we recommend (and support) use
jsonfor this, an established standardized machine-oriented format.
Parsing is done once before or during first access and the resulting set of parameters is stored as a singleton.
Interested? Then have a look at our quick start or dive into the full documentation.
If you appreciate this library package, then please give us a star on Github.
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for application_settings 0.5.0
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 |
|---|---|---|---|---|
| application_settings-0.5.0.tar.gz | 22.2 kB | Without provenance | Details for application_settings-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| application_settings-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for application_settings-0.5.0-py3-none-any.whl |
Total release size: 42.8 kB
Release files / application_settings-0.5.0.tar.gz
| Download URL | application_settings-0.5.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86891a52ac0661d0b6b17b727e902ebcd3beb14ed8d9eb7394def0c427e585ee
|
|
BLAKE2b-256 checksum How to use checksums |
a12a752590cf49dbd4997ff3b07f729f8432ee67dc5a547887d629ca2bf1def0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.12.1 Windows/11
|
Release files / application_settings-0.5.0-py3-none-any.whl
| Download URL | application_settings-0.5.0-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cef62e89da8c44604b12515c7ac22fb23b9c95e317e87ee93a4273b1b0d084c6
|
|
BLAKE2b-256 checksum How to use checksums |
a8cc72065009ba4fa19a9f9a3522183fee394db8162f65dc4fda7069f3717c8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.12.1 Windows/11
|
Security for application_settings 0.5.0
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.