• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created almost 12 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

More Repositories

1

byte-of-python

Beginners book on Python - start here if you don't know programming
Python
2,302
star
2

byte-of-vim

"A Byte of Vim" is a book which aims to help you to learn how to use the Vim editor (version 7), even if all you know is how to use the computer keyboard.
386
star
3

flask-boilerplate

A Flask skeleton for Apache/mod_wsgi deployment and many other goodies
CSS
182
star
4

dotvim

DEFUNCT, *no longer used* ; My Vim setup, using vundle
Vim Script
72
star
5

isbnnetin

PROJECT NO LONGER USED, See 'isbnnetinclj'
Ruby
35
star
6

kalam

Live preview of pandoc text
JavaScript
19
star
7

TransformerAPI

Example API server (using swift-nio) that wraps a Swift for TensorFlow model
Swift
18
star
8

vim-markdown-preview

Select Markdown text, render to HTML and preview in browser
Vim Script
15
star
9

rangoli-emacs

An Emacs configuration. A holy, minimal, readable alternative to spacemacs and doom-emacs.
Emacs Lisp
10
star
10

isbnnetinclj2

A quick way to find the online prices for a book in India
Clojure
10
star
11

tmux-pomodoro

tmux plugin for pomodoro technique
Shell
9
star
12

isbnnetinclj

(DEPRECATED) See https://github.com/swaroopch/isbnnetinclj2
JavaScript
7
star
13

wordpress_add_tweet_as_comment

Add any random tweet as a comment to your blog post, to save tweet replies along with your blog comments.
PHP
3
star
14

datafaker

Generate fake data for testing/seed data purposes (generates Indian-sounding names)
Python
2
star
15

backpack_to_gollum

Port content in Backpack (37Signals) account to a local Gollum wiki
Ruby
2
star
16

export-mediawiki-to-wordpress

Export pages from MediaWiki to WordPress
Clojure
1
star
17

scratchpad-openai

Jupyter Notebook
1
star
18

vagrant-pg-shard

Vagrantfile to try out pg_shard
Shell
1
star