clojure literal reader and writer for python
Project description
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.
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.1.2.tar.gz
(3.8 kB
view details)
File details
Details for the file pyclj-0.1.2.tar.gz
.
File metadata
- Download URL: pyclj-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738f55db7b8371a764eb89c19ff2465de7a4f1e54303e67da125a870c7713afc |
|
MD5 | 4539d625558cf5c72a9d4b92117ea7a3 |
|
BLAKE2b-256 | bc464371e0fa1d2d1f55ba34aa8ab80c4e1f4d1143f8a65bc3bf5bf93865b685 |