EDN format reader and writer in Python
Project description
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
edn_format-0.6.5.tar.gz
(16.4 kB
view hashes)
Built Distribution
edn_format-0.6.5-py2-none-any.whl
(12.0 kB
view hashes)
Close
Hashes for edn_format-0.6.5-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e92c3413d57f015ee8be7e6e539dcbfdf7fa26dc76e936cd0ef7fc533bbcd123 |
|
MD5 | b4dd6634007ed43300460c0c170954f5 |
|
BLAKE2b-256 | a202c0236ccd3cdcb276e066ee2119f732535bb6e08ddf79d26eac8256472621 |