Turns your configurations into actions
Project description
Using a strong configuration backend, such as pyhocon, relieves you from dealing with configuration sources, however, as a developer, you’re still left with the task of turning these sources into action. This may involve further processing of specified values, checking for constraints, define exceptions or generally getting things in the right place. This package helps you doing so.
My main motivation for creating this package was dealing with physical quantities. As a developer you adhere to a specific set of units that are used throughout your application, but for a user it might be just convenient to specify these values in different units. Say your program uses the SI unit system for its internal calculations and therefore you declare the length of some object in units of meter. But your users might specify objects of various magnitudes and therefore, for the sake of convenience, use different units such as centimeter or millimeter. Having a mechanism that automatically converts the specified values such that they meet the declaration is one of the many features of this package.
This package separates the configuration process into two stages: declaration and specification. Declaration is performed by the developer while specification is done by the user. This package focuses on the declaration part and also builds a bridge between the two worlds by making sure that the specified values arrive exactly where you want them to be.
Helpful links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hanna-0.2.3.tar.gz
.
File metadata
- Download URL: hanna-0.2.3.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c0c100c2414a3830b35dd93bc51d1a003e57c5ab40bd95eec7e950128144c9 |
|
MD5 | ca291204c992b5adb917cd16f7e04c44 |
|
BLAKE2b-256 | a0d7ddb2873f08f232955ce4c0c1bae4e53c53bccbbcd7feee0684666ced27ff |
File details
Details for the file hanna-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: hanna-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee5150eaf0a235fea3d49fd3c688efa61a9eb1547629533086d646635c9d0a2a |
|
MD5 | ee712cff326bae761519eed62c5e9ee7 |
|
BLAKE2b-256 | a9d7518700adf5aa0831d811f15ca0708c81cfd30f92948b4a44ed47baf2cf1e |