edn_format
Implements the EDN format in Python.
All features of EDN are implemented, including custom tagged elements.
Installation
pip install edn_format
Usage
>>> import edn_format
>>> edn_format.dumps({1, 2, 3})
'#{1 2 3}'
>>> edn_format.loads("[1 true nil]")
[1, True, None]
>>> edn_format.loads_all("1 2 3 4")
[1, 2, 3, 4]
In general, edn_format.loads(edn_format.dumps(obj)) == obj. If this is
false, it may be a bug.
See tests.py for full details.
Contributors
Special thanks to the following contributors for making this library usable:
FAQ
Why immutable list & dict?
IIRC, it was related to https://github.com/edn-format/edn#rationale :
edn will yield distinct object identities when read, unless a reader implementation goes out of its way to make such a promise. Thus the resulting values should be considered immutable, and a reader implementation should yield values that ensure this, to the extent possible.
Release files for edn-format 0.8.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 | |
|---|---|---|---|
| edn_format-0.8.0.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| edn_format-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / edn_format-0.8.0.tar.gz
| Download URL | edn_format-0.8.0.tar.gz |
|---|---|
| Size | 20.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0febbe33b44f18f8c1d8e767eda282c4c30344ce1975fda7f2362412893b192
|
|
BLAKE2b-256 checksum How to use checksums |
93bb4d044fbd99bc1f6c96785e9b1cc70c51defa9892506ecaf6ba13241b98d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.
Transparency logRelease files / edn_format-0.8.0-py3-none-any.whl
| Download URL | edn_format-0.8.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b54a549eff10e4e9047dd22d5f6aafccbc490ae959511929ecf47c3b3cd513c2
|
|
BLAKE2b-256 checksum How to use checksums |
d6cabdcb78d893539d2d4f6aeff689f7d8d89bc9784b2c5be99e80fa6e583732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.
Transparency log