Skip to main content

yaml2jsonnet

Converts YAML into Jsonnet (specifically targetting YAML for Kubernetes)

Suppose that you have some YAML that you use for Kubernetes (either hand-written or output by Helm. Now you’d like to use Jsonnet instead, for its fancier templating capabilities. This is a pain, because while YAML->JSON converters are easy to find, they produce ugly-looking (but valid!) Jsonnet.

The goal of this project is to make the conversion a little easier: transform the YAML into slightly prettier Jsonnet, preserving comments along the way.

Development Setup

  • Install Poetry

  • Install Pre-commit

  • Run poetry install to install dependencies

  • Run poetry run python -m yaml2jsonnet /path/to/yaml to convert a file

  • Probably, run jsonnetfmt on the output, since the only whitespace I provide is newlines

Metadata

Release files for yaml2jsonnet 0.6.0

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

Source distribution (sdist)

Source distribution for yaml2jsonnet 0.6.0
File Size Uploaded Provenance Actions
yaml2jsonnet-0.6.0.tar.gz 17.5 kB Without provenance Details for yaml2jsonnet-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yaml2jsonnet 0.6.0
File Interpreter ABI Platform Actions
yaml2jsonnet-0.6.0-py3-none-any.whl Python 3 none any Details for yaml2jsonnet-0.6.0-py3-none-any.whl

Total release size: 36.1 kB

Release files / yaml2jsonnet-0.6.0.tar.gz

Download URL yaml2jsonnet-0.6.0.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ed3a2dc4ed4adb65c9ee50e8ca6a7fd814144c6f4d23e84296579dd390c1b6fd
BLAKE2b-256 checksum
How to use checksums
0a07319b014d7c37a45935204356f7f1193a9749200f170126d6ab9b0acf509e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

Release files / yaml2jsonnet-0.6.0-py3-none-any.whl

Download URL yaml2jsonnet-0.6.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38a27ff1459638d9879a094bff9c53494c7729090debb42575a5c00f4ccd4566
BLAKE2b-256 checksum
How to use checksums
5562342c1afbe05d7ff6de636b938dccc7f6bdaa8cce4997f3c62e15ea6a868c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

Security for yaml2jsonnet 0.6.0

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