Registry / serialization / kvf
library0.0.3pypypi✓ verified 80d ago

A Python library for reading and writing key-value files with sections, similar to INI but with a simpler format. Current version 0.0.3, early development stage.

pip install kvf
INSTALL
IMPORT
SIG · KVF
K
kvf
serializationpythonv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

load
from kvf import load
from kvf import read
dump
from kvf import dump
parse
from kvf import parse

Basic usage: write a dictionary with sections to a file, then read it back.

from kvf import read, write # Example data: sections with key-value pairs data = { 'section1': {'key1': 'value1', 'key2': 'value2'}, 'section2': {'key3': 'value3'} } # Write to a file write('example.kvf', data) # Read back loaded = read('example.kvf') print(loaded) # Output: {'section1': {'key1': 'value1', 'key2': 'value2'}, 'section2': {'key3': 'value3'}}
Debug
Known issues
gotchaThe library is very early (0.0.3) and may have breaking changes without notice.
fix
Pin version in requirements and test thoroughly.
affects: all
gotchaNo built-in validation: malformed files may lead to unexpected behavior or errors.
fix
Ensure the input data has the correct structure (dict of dicts).
affects: all
Upgrade
Version history
0.0.3latest on PyPI · released Dec 10, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kvf — pip install kvf · libregistry