Skip to main content

A simple command that turn json data to yaml format and vice versa. It can be used in Linux, MacOS and Window.

Project description

https://travis-ci.org/appstore-zencore/python-json2yaml.svg?branch=master

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

  1. Read json text from stdin and print yaml text to stdout

cat a.json | json2yaml
  1. Read json text from stdin and print yaml text to a file

cat a.json | json2yaml - a.txt
  1. Read json text from a file and print yaml text to another file

json2yaml a.json a.txt

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

python-json2yaml-0.1.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page