semvec/pypi-packages huggingface dataset:
llm-to-toon 1.0.36
Tiny wrapper exposing Prompture helpers to convert LLM output into TOON.
License: MIT
Requires Python: >=3.10
Keywords: llm, toon, prompt, structured-output

# llm-to-toon

Tiny wrapper around `prompture` that returns [TOON](https://github.com/jmorganca/python-toon)
(Token-Oriented Object Notation) instead of JSON. Under the hood it uses
`prompture.extract_and_jsonify(..., output_format="toon")` and converts the result
into the ultra-compact TOON text automatically.

Install:
```bash
pip install llm-to-toon
```

Usage:

```python
from llm_to_toon import from_llm_text

schema = {"name": "string", "age": "int"}
toon_text = from_llm_text("Name: Juan Age: 30", schema)
print(toon_text)
```

By default the helper spins up the local Ollama driver (`gemma:latest`). Pass your
own Prompture driver if you want to call OpenAI, Azure, Groq, etc. For the full
Prompture feature-set see the main project: https://github.com/jhd3197/prompture
llm-to-json 1.0.36
Tiny wrapper exposing Prompture helpers to convert LLM output into JSON.
License: MIT
Requires Python: >=3.10
Keywords: llm, json, prompt, structured-output

# llm-to-json

Tiny wrapper around `prompture` with a minimal, easy-to-use API for converting LLM output (or raw text) into JSON according to a schema.

Install:
```bash
pip install llm-to-json
```

Usage:

```python
from llm_to_json import from_llm_text
schema = {"name": "string", "age": "int"}
print(from_llm_text("Name: Juan Age: 30", schema))
```

For full docs and advanced features, see the main project: Prompture — https://github.com/jhd3197/prompture