toon-format-0.9.0b1


توضیحات

Token-Oriented Object Notation – a token-efficient JSON alternative for LLM prompts
ویژگی مقدار
سیستم عامل -
نام فایل toon-format-0.9.0b1
نام toon-format
نسخه کتابخانه 0.9.0b1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Johann Schopplich
ایمیل نویسنده Johann Schopplich <hello@johannschopplich.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/toon-format/
مجوز MIT
# TOON Format for Python [![PyPI version](https://img.shields.io/pypi/v/toon-format.svg)](https://pypi.org/project/toon-format/) [![Python versions](https://img.shields.io/pypi/pyversions/toon-format.svg)](https://pypi.org/project/toon-format/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) **Token-Oriented Object Notation** is a compact, human-readable format designed for passing structured data to Large Language Models with significantly reduced token usage. ## Status 🚧 **This package is currently a namespace reservation.** Full implementation coming soon! ### Example **JSON** (verbose): ```json { "users": [ { "id": 1, "name": "Alice", "role": "admin" }, { "id": 2, "name": "Bob", "role": "user" } ] } ``` **TOON** (compact): ``` users[2]{id,name,role}: 1,Alice,admin 2,Bob,user ``` ## Resources - [TOON Specification](https://github.com/johannschopplich/toon/blob/main/SPEC.md) - [Main Repository](https://github.com/johannschopplich/toon) - [Benchmarks & Performance](https://github.com/johannschopplich/toon#benchmarks) - [Other Language Implementations](https://github.com/johannschopplich/toon#other-implementations) ## Future Usage Once implemented, the package will provide: ```python from toon_format import encode, decode data = # your data structure toon_string = encode(data) decoded = decode(toon_string) ``` ## Contributing Interested in implementing TOON for Python? Check out the [specification](https://github.com/johannschopplich/toon/blob/main/SPEC.md) and feel free to contribute! ## License MIT License © 2025-PRESENT [Johann Schopplich](https://github.com/johannschopplich)


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl toon-format-0.9.0b1:

    pip install toon-format-0.9.0b1.whl


نصب پکیج tar.gz toon-format-0.9.0b1:

    pip install toon-format-0.9.0b1.tar.gz