Skip to main content

JSON to YAML Lite

A zero-dependency Python micro-tool that converts JSON strings into YAML. It does not require PyYAML and is optimized specifically for reducing LLM token usage in prompts.

Installation

pip install json-to-yaml-lite

Usage

from json_to_yaml_lite import convert_json_to_yaml

json_schema = """
{
  "employees": [
    {"firstName": "John", "lastName": "Doe"},
    {"firstName": "Anna", "lastName": "Smith"}
  ]
}
"""

print(convert_json_to_yaml(json_schema))

Output: (Token-efficient YAML)

employees:
  - firstName: John
    lastName: Doe
  - firstName: Anna
    lastName: Smith

Metadata

Release files for json-to-yaml-lite 0.1.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 json-to-yaml-lite 0.1.0
File Size Uploaded Provenance Actions
json_to_yaml_lite-0.1.0.tar.gz 3.7 kB With provenance Details for json_to_yaml_lite-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for json-to-yaml-lite 0.1.0
File Interpreter ABI Platform Actions
json_to_yaml_lite-0.1.0-py3-none-any.whl Python 3 none any Details for json_to_yaml_lite-0.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / json_to_yaml_lite-0.1.0.tar.gz

Download URL json_to_yaml_lite-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
54237604f7f182d51ca1f9324065de566bb00db27aba64d85c45b43058ff5c38
BLAKE2b-256 checksum
How to use checksums
49110c3f7afe81db202758258d7a805ba145940ba8e7ff28410420c40ec77869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Release files / json_to_yaml_lite-0.1.0-py3-none-any.whl

Download URL json_to_yaml_lite-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80ef22329445b5e5254f3b9bed2940724a4b81b41e81f21617de6c3beed685ef
BLAKE2b-256 checksum
How to use checksums
a84c73e6c84eb7a1eb6fbf332e47e8f420bfc4d0ee609cefc9f86afc95230aad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

Security for json-to-yaml-lite 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for json_to_yaml_lite-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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