kim-edn is a Python library providing an encoder and decoder for the EDN (Extensible Data Notation) format. It aims to offer a robust and efficient way to serialize and deserialize EDN data structures in Python. The current version is 1.4.1, and releases typically focus on packaging improvements, dependency updates, and minor fixes.
pip install kim-ednVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `kim-edn` to deserialize an EDN string into a Python dictionary and then serialize a Python dictionary back into an EDN string. It covers basic keyword mapping and data structure conversion.
Upgrade your Python environment to 3.8 or newer, or pin `kim-edn` to a version <1.4.0 if older Python compatibility is critical (e.g., `pip install 'kim-edn<1.4.0'`).
Update your code to use `from kim_edn import loads, dumps` and replace calls to `read_edn_string` with `loads` and `write_edn_string` with `dumps`.
To access the tests, you must clone the GitHub repository (`git clone https://github.com/openkim/kim-edn.git`) and find them in the source tree.
Run `pip install kim-edn` to install the package.
Replace `kim_edn.reader.read_edn_string` with `kim_edn.loads` and ensure you import `loads` directly: `from kim_edn import loads`.
Carefully review the EDN string for correctness (e.g., mismatched brackets, incorrect keyword syntax, missing spaces, unescaped characters). EDN is case-sensitive and strict about its format.
No dependency data recorded yet.