clojure literal reader and writer for python
Project description
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.9.1.tar.gz
(4.4 kB
view details)
File details
Details for the file pyclj-0.1.9.1.tar.gz
.
File metadata
- Download URL: pyclj-0.1.9.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 098f3fb2df4192d8ffe6e89b46c7b6a4b3c0de503df646a52ca947c6c73d476d |
|
MD5 | 28079328b091e885e3fd5fde994123af |
|
BLAKE2b-256 | 0d39eb0a7c021c98f0ac2ecfb8f64d8613d5caeea342705edc34f889bb1a5ac6 |