Metadata-Version: 2.4
Name: tonl-converter
Version: 0.1.0
Summary: A Python library for converting to and from TONL (Token-Optimized Notation Language)
Home-page: https://github.com/erdalbektas/tonl_converter
Author: erdalbektas
Author-email: erdalbektas@gmail.com
Keywords: tonl,converter,json,yaml,markdown,token-optimization
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Markup
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pyyaml
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# TONL Converter

A Python library for converting to and from TONL (Token-Optimized Notation Language).

## Features

- Convert JSON, YAML, and Markdown tables to TONL.
- Convert TONL to JSON, YAML, and Markdown.
- CLI tool for easy file conversion.
- Token-optimized output format.

## Installation

```bash
pip install tonl-converter
```

## Usage

### CLI

```bash
# Convert JSON to TONL
tonl input.json output.tonl

# Convert TONL to JSON
tonl input.tonl output.json

# Convert to Markdown table
tonl data.tonl report.md
```

### Python API

```python
from tonl import load, dump, to_json, from_json

# Load TONL file
with open('data.tonl', 'r') as f:
    data = load(f)

# Convert to JSON
json_str = to_json(data)
```

## License

MIT
