EDN format reader and writer in Python
Project Links
Meta
Author: Swaroop C H
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
License
- OSI Approved :: Apache Software License
Topic
- Software Development
Programming Language
- Python
- Python :: 2
- Python :: 3
Operating System
- OS Independent
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.
0.8.0
Jul 21, 2026
0.7.5
Nov 06, 2020
0.7.4
Oct 21, 2020
0.7.3
Oct 20, 2020
0.7.2
May 04, 2020
0.7.1
Apr 04, 2020
0.7.0
Dec 20, 2019
0.6.5
Nov 03, 2019
0.6.4
Sep 14, 2019
0.6.3
Apr 16, 2019
0.6.2
Jan 04, 2019
0.6.1
Sep 21, 2018
0.6.0
Sep 07, 2018
0.5.13
Oct 08, 2017
0.5.12
Feb 14, 2017
0.5.11
Feb 14, 2017
0.5.10
Feb 14, 2017
0.5.9
Jul 09, 2015
0.5.8
Jun 19, 2015
0.5.7
Jun 08, 2015
0.5.6
May 31, 2015
0.5.5
May 25, 2015
0.5.4
Feb 27, 2015
0.5.3
May 03, 2014
0.5.2
Feb 10, 2014
0.5.1
Feb 06, 2014
0.5
Jan 24, 2014
0.4
Nov 05, 2013
0.3.6
Jan 15, 2013
0.7.0.linux
Dec 20, 2019