Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
talking clojure with python - an edn implementation for python
Python
tree: a41c357f35

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
.gitignore
LICENSE
MANIFEST.in
README.rst
clj.py
setup.py

README.rst

pyclj

A python reader/writer for clojure data literals.

Install

pip install pyclj

Usage

The API is very similar to python's built-in json module.

  • dump(data, fileobj)
  • dumps(data)
  • load(fileobj)
  • loads(string)

Clojure -> Python Type Mapping

Clojure Python
list list
vector list
set set
map dict
nil None
string string
int int
float float
boolean boolean
char string
keyword string

Python -> Clojure Type Mapping

Python Clojure
list vector
set set
dict map
None nil
string string
int int
float float
boolean boolean

License

pyclj is distributed under MIT license.

Something went wrong with that request. Please try again.