davidpirogov/toon-llm

Token-Oriented Object Notation (TOON) is an LLM-optimized data serialization format implemented in Python.

53
/ 100
Established

Automatically serializes Python native types (datetime, dataclasses, Pydantic models) while intelligently selecting array formatting—inline, tabular, or list—to minimize token overhead. Achieves 60%+ token reduction versus JSON through syntax minimization and structural clarity, making it particularly effective for embedding structured data in LLM prompts. Includes CLI tooling for encoding/decoding with configurable delimiters and indentation, plus full Pydantic validation support for type-safe data handling.

9 stars and 17,450 monthly downloads. Available on PyPI.

Maintenance 6 / 25
Adoption 15 / 25
Maturity 18 / 25
Community 14 / 25

How are scores calculated?

Stars

9

Forks

3

Language

Python

License

MIT

Last pushed

Oct 31, 2025

Monthly downloads

17,450

Commits (30d)

0

Dependencies

10

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/davidpirogov/toon-llm"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.