clojure literal reader and writer for python
Project description
A python reader/writer for clojure data literals. On clojure’s extensible data notations, checkout Rich Hickey’s edn spec: https://github.com/richhickey/edn
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.
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
pyclj-0.2.2.tar.gz
(5.0 kB
view details)
File details
Details for the file pyclj-0.2.2.tar.gz
.
File metadata
- Download URL: pyclj-0.2.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b45839bc85b44ab9806d4eb73cd64ed9e1ae0a2be259c187aebe5d7d9bfca59 |
|
MD5 | ca2ed084912efda39dbbbec9e36b4959 |
|
BLAKE2b-256 | f61d28b1606ad1e2f1ed4d2f703ccb4842096c0f06f0b61dbb56cc0b167528b5 |