Skip to main content

Turning your configurations into actions - Declaring constructive configuration

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.

Metadata

Release files for hanna 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hanna 0.2.3
File Size Uploaded
hanna-0.2.3.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hanna 0.2.3
File Interpreter ABI Platform
hanna-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / hanna-0.2.3.tar.gz

Download URL hanna-0.2.3.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
32c0c100c2414a3830b35dd93bc51d1a003e57c5ab40bd95eec7e950128144c9
BLAKE2b-256 checksum
How to use checksums
a0d7ddb2873f08f232955ce4c0c1bae4e53c53bccbbcd7feee0684666ced27ff
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / hanna-0.2.3-py3-none-any.whl

Download URL hanna-0.2.3-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee5150eaf0a235fea3d49fd3c688efa61a9eb1547629533086d646635c9d0a2a
BLAKE2b-256 checksum
How to use checksums
a9d7518700adf5aa0831d811f15ca0708c81cfd30f92948b4a44ed47baf2cf1e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page