A simple command that turn json data to yaml format and vice versa. It can be used in Linux, MacOS and Window.
Project description
A simple command that turn json data to yaml format and vice versa. It can be used in Linux, MacOS and Window.
Install
pip install python-json2yaml
Commands
json2yaml
yaml2json
Command Helpers
E:\code\zencore-json2yaml\test>json2yaml --help Usage: json2yaml [OPTIONS] [SRC] [DST] Options: --help Show this message and exit. E:\code\zencore-json2yaml\test>yaml2json --help Usage: yaml2json [OPTIONS] [SRC] [DST] Options: --help Show this message and exit.
Command Examples
Read json text from stdin and print yaml text to stdout
cat a.json | json2yaml
Read json text from stdin and print yaml text to a file
cat a.json | json2yaml - a.txt
Read json text from a file and print yaml text to another file
json2yaml a.json a.txt
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
File details
Details for the file python-json2yaml-0.1.1.tar.gz
.
File metadata
- Download URL: python-json2yaml-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9aaa83877c2f38751f76d2135be220d1f30f29a5bea264aa5a14a846a1763a |
|
MD5 | 56f837f994ac1e00ec2e08856e0b40f4 |
|
BLAKE2b-256 | 05cb01ee6bd19f4b74e24e68c30fc0df369860d2025b07f23d4bfbbf10d9e15a |