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
Metadata
Release files for llm-to-toon 1.13.4
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.13.4.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_toon-1.13.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / llm_to_toon-1.13.4.tar.gz
| Download URL | llm_to_toon-1.13.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e342392760681819b68a061a80180916eb25bff6f7a1e76b5455fabd8ce917be
|
|
BLAKE2b-256 checksum How to use checksums |
6ab9e9267837381b8e6b5c87f496d1ad2a3edfec0b0bc4ddd85630d344913061
|
| 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.13.4-py3-none-any.whl
| Download URL | llm_to_toon-1.13.4-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc05d4ebfb1dca4220c30fd8200848a82ce95c25f61cb3510c94c0c2591a4a29
|
|
BLAKE2b-256 checksum How to use checksums |
bc4fc5e9efdb5c927ed6eb2bb1e41ca70e4765f151520c4440e05ddf4e5c28e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|