All Projects → swaroopch → Edn_format

swaroopch / Edn_format

Licence: other
EDN reader and writer implementation in Python, using PLY (lex, yacc)

Programming Languages

python
139335 projects - #7 most used programming language
clojure
4091 projects

Projects that are alternatives of or similar to Edn format

Fasteasymapping
A tool for fast serializing & deserializing of JSON
Stars: ✭ 556 (+504.35%)
Mutual labels:  serialization, deserialization
Go
A high-performance 100% compatible drop-in replacement of "encoding/json"
Stars: ✭ 10,248 (+11039.13%)
Mutual labels:  serialization, deserialization
Bridge Deprecated
[DEPRECATED]: Prefer Retrofit/OkHttp by Square, or Fuel for Kotlin
Stars: ✭ 624 (+578.26%)
Mutual labels:  serialization, deserialization
Quick Xml
Rust high performance xml reader and writer
Stars: ✭ 480 (+421.74%)
Mutual labels:  serialization, deserialization
Restfulsense
A RESTFul operations client that serializes responses and throws meaningful exceptions for >= 400 status codes.
Stars: ✭ 28 (-69.57%)
Mutual labels:  serialization, deserialization
Cista
Simple C++ Serialization & Reflection.
Stars: ✭ 535 (+481.52%)
Mutual labels:  serialization, deserialization
Bluecap
iOS Bluetooth LE framework
Stars: ✭ 669 (+627.17%)
Mutual labels:  serialization, deserialization
Handyjson
A handy swift json-object serialization/deserialization library
Stars: ✭ 3,913 (+4153.26%)
Mutual labels:  serialization, deserialization
Nippy
High-performance serialization library for Clojure
Stars: ✭ 838 (+810.87%)
Mutual labels:  serialization, edn
Jackson Module Kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Stars: ✭ 830 (+802.17%)
Mutual labels:  serialization, deserialization
Ysoserial
A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.
Stars: ✭ 4,808 (+5126.09%)
Mutual labels:  serialization, deserialization
Beeschema
Binary Schema Library for C#
Stars: ✭ 46 (-50%)
Mutual labels:  serialization, deserialization
Typesystem
Data validation, serialization, deserialization & form rendering. 🔢
Stars: ✭ 416 (+352.17%)
Mutual labels:  serialization, deserialization
Fastjson
A fast JSON parser/generator for Java.
Stars: ✭ 23,997 (+25983.7%)
Mutual labels:  serialization, deserialization
Colander
A serialization/deserialization/validation library for strings, mappings and lists.
Stars: ✭ 408 (+343.48%)
Mutual labels:  serialization, deserialization
Marshmallow
A lightweight library for converting complex objects to and from simple Python datatypes.
Stars: ✭ 5,857 (+6266.3%)
Mutual labels:  serialization, deserialization
Cattrs
Complex custom class converters for attrs.
Stars: ✭ 286 (+210.87%)
Mutual labels:  serialization, deserialization
Bebop
An extremely simple, fast, efficient, cross-platform serialization format
Stars: ✭ 305 (+231.52%)
Mutual labels:  serialization, deserialization
Iod
Meta programming utilities for C++14. Merged in matt-42/lithium
Stars: ✭ 731 (+694.57%)
Mutual labels:  serialization, deserialization
Edn Data
EDN parser and generator that works with plain JS data, with support for TS and node streams
Stars: ✭ 44 (-52.17%)
Mutual labels:  serialization, edn

edn_format

Implements the EDN format in Python.

All features of EDN are implemented, including custom tagged elements.

Build Status PyPI version

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].