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
File details
Details for the file edn_format-0.7.0.linux-x86_64.tar.gz
.
File metadata
- Download URL: edn_format-0.7.0.linux-x86_64.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6700968289abf6587ef725cfc8135b47dbf622ae38ff383867bdc307b2b0eb |
|
MD5 | 33732290a9159146690d67b96050d702 |
|
BLAKE2b-256 | 034cf45a993256e77682b316668346be2307a5c64510adccf9d660310889450e |
File details
Details for the file edn_format-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: edn_format-0.7.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bae9571fff14167f48cf865ec5fbca29d6947b9f0207292a86f1147a91c0f91 |
|
MD5 | 19fe4dce32741e5e17c575901a3bc30d |
|
BLAKE2b-256 | 6d68b08a1ec6184094a485dbc326c5d89733539b06253c2785d09c07050b0cd5 |