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.1
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.1.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_toon-1.12.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.3 kB
Release files / llm_to_toon-1.12.1.tar.gz
| Download URL | llm_to_toon-1.12.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d6e157ef24768b6cc27f5b56f10e356dd7abb0816941e78d84c913b8f26e16d
|
|
BLAKE2b-256 checksum How to use checksums |
b5ae3fb7a0359a7d4cfbc25ee022d7c923c9e5ec1658ceec71cffb55dff6d523
|
| 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.1-py3-none-any.whl
| Download URL | llm_to_toon-1.12.1-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23771e03b2f35a18abb6e4f150db38c508e7a6f800d54fe031639ab9c8b0298b
|
|
BLAKE2b-256 checksum How to use checksums |
be081a75410375f4a355124a423115f8893386c3256ff2cf308c0ce9a28a39a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|