configobjectify
A lightweight Python library that provides an object-oriented interface for accessing values from INI configuration files. Instead of retrieving values using dictionary-style or section-based lookups, you can access configuration keys through dot notation.
Installation
pip install configobjectify
Usage
Consider the following config.ini file,
[APPLE]
device_name = iPhone
model = iPhone 17
os_version = 26.0
[GOOGLE]
device_name = Pixel
model = Pixel 10
os_version = 16
>>> from configobjectify import Config
>>> config = Config("config.ini", "APPLE")
>>> config.device_name.value
'iPhone'
>>> config.model.value
'iPhone 17'
>>> config.os_version.value
'26.0'
Selecting a different section
>>> config = Config("config.ini", "GOOGLE")
>>> config.device_name.value
'Pixel'
>>> config.model.value
'Pixel 10'
>>> config.os_version.value
'16.0'
NOTE: Section names are normalized to uppercase by the library before lookup.
Handling missing configuration keys
>>> config = Config("config.ini", "APPLE")
>>> config.country_of_origin.value
>>> ''
Installed version
To get to know the version of configobjectify,
>>> import configobjectify
>>> print(configobjectify.__version__)
or
>>> from configobjectify import __version__
>>> print(__version__)
Requirements
- Python 3.12 or later
Contributing
Contributions, bug reports, and feature suggestions are welcome. Please open an issue to discuss a proposed change before submitting a pull request.
License
This package is distributed under the terms of MIT license
Metadata
Release files for configobjectify 0.2.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 |
|---|---|---|---|---|
| configobjectify-0.2.0.tar.gz | 5.0 kB | Without provenance | Details for configobjectify-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| configobjectify-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for configobjectify-0.2.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / configobjectify-0.2.0.tar.gz
| Download URL | configobjectify-0.2.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e207da451e574706ccdf640245d4176bfaecc66c8242e204ebe652af2eefb3
|
|
BLAKE2b-256 checksum How to use checksums |
4358a2091a15122784caee65f309304dd34641892205801bdb46b8b2a523d03c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / configobjectify-0.2.0-py3-none-any.whl
| Download URL | configobjectify-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
648b7dce434d807f42cec3a82ba2a0b66edb4307b73bb6332abcbd1642dcb3f2
|
|
BLAKE2b-256 checksum How to use checksums |
400b993680ed22a57c52e0f3d3220ca987bfef8100c18f3823d5b4dde705ee38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for configobjectify 0.2.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.