Metadata-Version: 2.4
Name: json-to-yaml-lite
Version: 0.1.0
Summary: A zero-dependency micro-tool to convert JSON strings into YAML to save LLM tokens.
Author-email: Encephos <magiltraun@gmail.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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

```bash
pip install json-to-yaml-lite
```

## Usage

```python
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)*
```yaml
employees:
  - firstName: John
    lastName: Doe
  - firstName: Anna
    lastName: Smith
```
