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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file edn_format-0.7.1.tar.gz.
File metadata
- Download URL: edn_format-0.7.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5cf7e857b5f901a1ef9d05327608d79d4021a9fc2dfe2c6c1e90b9fee9a84fb
|
|
| MD5 |
b3956092263d462e52a72f4607844923
|
|
| BLAKE2b-256 |
7f04902676ae79b5b1a93bb20a6f3818493f1c506c1d780eac315150065f0a03
|
File details
Details for the file edn_format-0.7.1-py2-none-any.whl.
File metadata
- Download URL: edn_format-0.7.1-py2-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5405e7c1257679ac83ebebc2e4038b4f5135b0268b8695f4d2de8a26b4ad6af6
|
|
| MD5 |
8ce861f5a9b9dace8c1026874986ab41
|
|
| BLAKE2b-256 |
ef5b1a43f5aab939dcdd55a98bc6329d38d9611d40c45f666e26a46123a8deb1
|