ihih
ihih is an attempt to provide simple configuration parsers (for Python) with a dictionary-like interface.
It try to be flexible and let you alter the syntax by sub-classing it.
More informations can be found in the docs directory or online:
Features
“flat” configuration file format
Flat by opposition to, “nested” (like JSON, nginx, …) and “section” (INI files, …).
Simple key / value system
Simple, obvious, supporting the features you are used to (ignore blank lines and spaces, support comments, automatic unquoting, …).
Lazy value interpolation
Example:
my_banner = $myhostname MY-PROGRAM my_hostname = server.example.net
Dictionary-like interface
Example:
>>> print conf['my_banner']
server.example.net MY-PROGRAM
Configuration precedence
In the following example, user configuration file will take precedence over system-wide configuration file:
conf = IHIH(
(
'/etc/example.conf',
os.path.join(os.path.expanduser('~'), '.example.conf')
)
)
Default on the initialization
Example:
conf = IHIH(
'/etc/example.conf',
{'lang': 'en', 'TZ': 'UTC'}
)
Metadata
Release files for ihih 0.2.1
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 |
|---|---|---|---|---|
| ihih-0.2.1.tar.gz | 5.8 kB | Without provenance | Details for ihih-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ihih-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ihih-0.2.1-py3-none-any.whl |
Total release size: 12.4 kB
Release files / ihih-0.2.1.tar.gz
| Download URL | ihih-0.2.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2e4865f1d3fa0c07a81869287d24d9985a4710823cd8b2e18dd855940b64e96
|
|
BLAKE2b-256 checksum How to use checksums |
4503efbecd8b5df460bd0d2095652d8d7492abaa57476a0954e9dd5b4afb213e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / ihih-0.2.1-py3-none-any.whl
| Download URL | ihih-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a32f51795688a136d036c192ba33399c95d835bcae33febf69d983670625d96b
|
|
BLAKE2b-256 checksum How to use checksums |
bfa274b90062227e2488b7368bf25c2cb8aa2f37ae4d97d13ff67df6d8ee265b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for ihih 0.2.1
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.