Skip to main content

yml2json

Source
Open Issues
Author

Converts YAML input to JSON output. Relies on PyYaml, which supports YAML 1.0 and 1.1, but not 1.2.

yml2json has been tested on Python 2.7.11 and Python 3.5.1. YMMV.

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 && \
pip install -r requirements2.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.

Metadata

Release files for yml2json 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yml2json 1.1.3
File Size Uploaded Provenance Actions
yml2json-1.1.3.tar.gz 3.4 kB Without provenance Details for yml2json-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yml2json 1.1.3
File Interpreter ABI Platform Actions
yml2json-1.1.3-py2-none-any.whl Python 2 none any Details for yml2json-1.1.3-py2-none-any.whl

Total release size: 8.9 kB

Release files / yml2json-1.1.3.tar.gz

Download URL yml2json-1.1.3.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
649c5399d048c17528dbb84c95e3a9e30735d2263b088e3a38184192cb53ca6c
BLAKE2b-256 checksum
How to use checksums
d7d146deb219305d7639bb0a6c19e429c5f9d849942d4587dcba45a7c7394805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / yml2json-1.1.3-py2-none-any.whl

Download URL yml2json-1.1.3-py2-none-any.whl
Size 5.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
bb1881b201992e26bd3749674ddcacdb6a23b3da832083986aa21e0d4ab73b25
BLAKE2b-256 checksum
How to use checksums
ea19f240165f0628a0ab386f85b370e40f63a66c89af25965bf56f30142b8f8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for yml2json 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page