Registry / serialization / initools

initools

JSON →
library0.3.1pypypi✓ verified 79d ago

initools is a Python library for parsing INI-style configuration files, providing convenient attribute-like access to configuration values. It was last released in 2013 (version 0.3.1) and is no longer actively maintained, making it effectively abandoned. For new projects, the standard library's `configparser` module is recommended.

pip install initools
INSTALL
IMPORT
SIG · INITOOLS
I
initools
serializationpythonv0.3.1
Install
2.7s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.3MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.7s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IniConfig
import initools
from initools import IniConfig

This example demonstrates how to parse an INI string using `IniConfig` and access its values via both attribute and dictionary-like notation.

import io from initools.ini import IniConfig ini_string = """ [server] host = 127.0.0.1 port = 8080 [database] type = postgres user = admin """ # Parse the INI string config = IniConfig(io.StringIO(ini_string)) # Access values using attribute-like syntax print(f"Server Host: {config.server.host}") print(f"Database Type: {config.database.type}") print(f"Database User: {config.database.user}") # Access values using dictionary-like syntax print(f"Server Port: {config['server']['port']}")
Debug
Known issues
breakingThe `initools` library is abandoned and has not been updated since 2013. It receives no security patches, bug fixes, or compatibility updates. While it might still work for simple cases with current Python 3 versions, its long-term compatibility is not guaranteed, and it may fail with future Python releases.
fix
Migrate to `configparser` from Python's standard library for robust, maintained INI parsing. `configparser` offers similar functionality and is actively developed.
affects: All versions (0.x)
gotchaAccessing a non-existent section or key via attribute or dictionary access will raise an `AttributeError` or `KeyError` respectively, as `initools` does not provide a direct way to specify default values or fallback behavior.
fix
Implement explicit checks or use `try-except` blocks. For example, `getattr(config.section, 'key', 'default_value')` or `config.section.get('key', 'default_value')` (if using dictionary-like access) might be used, though `configparser` offers better built-in fallbacks. Ensure sections and keys exist before accessing them.
affects: All versions (0.x)
gotchainitools is purely a parser and does not provide functionality to write or modify INI configuration files back to disk or string.
fix
If write functionality is required, `configparser` (from Python's standard library) supports writing configuration back to files using `config.write(file_object)`.
affects: All versions (0.x)
Upgrade
Version history
0.3.1latest on PyPI · released Mar 31, 2010
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Resources
initools — pip install initools · libregistry