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
Built Distribution
edn_format-0.7.0-py3-none-any.whl
(11.2 kB
view hashes)
Close
Hashes for edn_format-0.7.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6700968289abf6587ef725cfc8135b47dbf622ae38ff383867bdc307b2b0eb |
|
MD5 | 33732290a9159146690d67b96050d702 |
|
BLAKE2b-256 | 034cf45a993256e77682b316668346be2307a5c64510adccf9d660310889450e |
Close
Hashes for edn_format-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bae9571fff14167f48cf865ec5fbca29d6947b9f0207292a86f1147a91c0f91 |
|
MD5 | 19fe4dce32741e5e17c575901a3bc30d |
|
BLAKE2b-256 | 6d68b08a1ec6184094a485dbc326c5d89733539b06253c2785d09c07050b0cd5 |