Command Line Tool to Work with Transit Format
Project description
Command Line Tool to Work with Transit Format
Free software: ISC license
Documentation: https://transito.readthedocs.org.
Features
convert to and form json, edn, transit
read content from stdin or files
Usage
usage: transito [-h] {t2j,j2t,e2t,t2e} ... Transit CLI positional arguments: {t2j,j2t,e2t,t2e} t2j convert transit to json j2t convert json to transit e2t convert edn to transit t2e convert transit to edn optional arguments: -h, --help show this help message and exit
Convert Transit to JSON from a file:
$ transito t2j examples/ex1.transit [":keyword", "~lala", 1, 1.2, true, null, [], ["hi", "a"]]
Convert Transit to JSON from stdin:
$ transito t2j - ["~#list",["~:keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]] [":keyword", "~lala", 1, 1.2, true, null, [], ["hi", "a"]]
Piping from another command:
$ echo '["~#list",["~:keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]]' | transito t2j - [":keyword", "~lala", 1, 1.2, true, null, [], ["hi", "a"]]
Same for Edn:
$ transito t2e examples/ex1.transit (keyword lala 1 1.2 true nil [] ["hi" \a])
$ echo '["~#list",["~:keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]]' | transito t2e - (keyword lala 1 1.2 true nil [] ["hi" \a])
$ transito t2e - ["~#list",["~:keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]] (keyword lala 1 1.2 true nil [] ["hi" \a])
you should get the idea, some with transit as output just in case:
$ transito e2t - (keyword lala 1 1.2 true nil [] ["hi" \a]) ["~#list",["~$keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]] $ transito t2j - ["~#list",["~$keyword","~$lala",1,1.2,true,null,[],["hi",["~#char","a"]]]] ["~keyword", "~lala", 1, 1.2, true, null, [], ["hi", "a"]]
Credits
Tools used in rendering this package:
History
0.1.0 (2015-01-11)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
transito-0.1.0.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for transito-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e33cd0069a20b7b779b16d8e8c5811f6edf246b18adb93c98a6536c482e48dd4 |
|
MD5 | 760221b049428b165b1422a0ba25dade |
|
BLAKE2b-256 | aac0fc443e09cd4404523f0cb65e818df97f8f1ff53280cc9a055f419dd5da16 |