llm-to-toon
Tiny wrapper around prompture that returns 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:
pip install llm-to-toon
Usage:
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
Release files for llm-to-toon 1.12.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_to_toon-1.12.2.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_toon-1.12.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / llm_to_toon-1.12.2.tar.gz
| Download URL | llm_to_toon-1.12.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e940e36096a5d801c0dc4a8f28fbc6c601b70f9b148ded26c0a0ad0bfd1ac79
|
|
BLAKE2b-256 checksum How to use checksums |
d3eb57dcdc4988ea93a9e87b77a229002185d3c3f05ebc345f9b94a5e4b4294c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / llm_to_toon-1.12.2-py3-none-any.whl
| Download URL | llm_to_toon-1.12.2-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ef54e3bbbcff37eb4e4f9a276b08c76480e2e8b9519be66e6a0183c626f62f4
|
|
BLAKE2b-256 checksum How to use checksums |
31cb57ea0111da8d9cd14b043983c68962dcce117ab2d81d5e20babad6bbaa8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|