Skip to main content

Converts YAML input to JSON output.

Project description

Source
Open Issues
Author

Converts YAML input to JSON output.

Examples

yml2json sample.yml
yml2json sample.yml --pretty
yml2json sample.yml --output sample.json
yml2json sample.yml --output sample.json --pretty

cat sample.yml | yml2json
cat sample.yml | yml2json --pretty
cat sample.yml | yml2json --output sample.json
cat sample.yml | yml2json --output sample.json --pretty

Installation

Using Pip:

pip install yml2json

Developing

First, install VirtualEnv.

pip install --upgrade virtualenv

Next, activate your virtual environment and install the dependencies.

virtualenv vendor && \
source vendor/bin/activate && \
pip install -r requirements.txt

Contributing

Here’s the process for contributing:

  1. Fork yml2json to your GitHub account.

  2. Clone your GitHub copy of the repository into your local workspace.

  3. Write code, fix bugs, and add tests with 100% code coverage.

  4. Commit your changes to your local workspace and push them up to your GitHub copy.

  5. You submit a GitHub pull request with a description of what the change is.

  6. The contribution is reviewed. Maybe there will be some banter back-and-forth in the comments.

  7. If all goes well, your pull request will be accepted and your changes are merged in.

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

yml2json-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

yml2json-1.0.1-py2-none-any.whl (5.2 kB view details)

Uploaded Python 2

File details

Details for the file yml2json-1.0.1.tar.gz.

File metadata

  • Download URL: yml2json-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yml2json-1.0.1.tar.gz
Algorithm Hash digest
SHA256 069d793a34f7b8cb2c02cecdf4c865498f4181a6a57149e9630a93a4dcd68f7c
MD5 fd6ba5b8c9b484cc27fbead428eda7ad
BLAKE2b-256 8fe459614e9a0dd9ccfe56183e83fa4ada557c8c7e1d175cda5fdf820ee55ad9

See more details on using hashes here.

File details

Details for the file yml2json-1.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for yml2json-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 eb644b90ffbaeab87fdc40b17f096c135298f16962445381312eb2070e7df96b
MD5 21e63c049b3ed5bf3c2cdf2b64ad22e8
BLAKE2b-256 8b430ba750e00c1b09f34f8a29ddd391fa775e18fe5a524bfa4e7c95bb8d2e0b

See more details on using hashes here.

Supported by

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