Skip to main content

configobjectify

CI Development Status Python versions

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

[ANDROID]
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", "ANDROID")
>>> 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.1.0

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

Source distribution (sdist)

Source distribution for configobjectify 0.1.0
File Size Uploaded Provenance Actions
configobjectify-0.1.0.tar.gz 5.0 kB Without provenance Details for configobjectify-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.6 kB

Release files / configobjectify-0.1.0.tar.gz

Download URL configobjectify-0.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
952f3bab9818437130978cfda2cd107d602f14a9f800dbe30863b219f1e67f6d
BLAKE2b-256 checksum
How to use checksums
a6a580ec10c2986bc9fafb5c702e2a8071def3fa8c8a98bd6732fbeb6e3f7e06
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.1.0-py3-none-any.whl

Download URL configobjectify-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebb786d9ba5b5050460be3a7bebfe2cca586543d6e5c0e30f588d0f1916c954c
BLAKE2b-256 checksum
How to use checksums
ff3a1a9e66270bb34ba4a948dc67715f9c848916801cb2c30a6d5e652e14850b
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.1.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.

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