Skip to main content

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.17.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-to-toon 1.17.1
File Size Uploaded Provenance Actions
llm_to_toon-1.17.1.tar.gz 2.1 kB Without provenance Details for llm_to_toon-1.17.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-to-toon 1.17.1
File Interpreter ABI Platform Actions
llm_to_toon-1.17.1-py3-none-any.whl Python 3 none any Details for llm_to_toon-1.17.1-py3-none-any.whl

Total release size: 4.3 kB

Release files / llm_to_toon-1.17.1.tar.gz

Download URL llm_to_toon-1.17.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1400308fd66d02304e19e76a7384b7c57c5e0a76dfffbb8c8320ec27ef27e983
BLAKE2b-256 checksum
How to use checksums
81dbe50c6b5c11e4040c7a06ca130cf3bd124a7a2a8e8b3b1446834c8e73916c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / llm_to_toon-1.17.1-py3-none-any.whl

Download URL llm_to_toon-1.17.1-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d1204f911647ffa481cf0ee2c4a6a58bd0b886be6160a9a4c2d0eae6746b337
BLAKE2b-256 checksum
How to use checksums
df1da3705ea3fcade7b0f69c51dd5755a7b6871946adc5a9e0c0513b35a2e164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for llm-to-toon 1.17.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.17.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page