JSON to TOON converter
Project description
Python Toon — JSON to TOON converter
python-toon converts JSON data into the TOON data format used by downstream tools.
Author: Naman Gupta
What it does
- Parse and normalise JSON input into an internal TOON representation
- Intended for programmatic use in pipelines
Install
Install for development:
python -m pip install -e .
Install runtime dependencies:
python -m pip install -r requirements.txt
Quick example
Conceptual example (see the package source for exact APIs):
from python_toon import encode
# load JSON (from file, network, etc.)
data = {"type": "scene", "items": [...]}
# convert to TOON representation
toon_obj=encode(data)
print(toon_obj)
Project layout
src/python_toon/normaliser.py— JSON → TOON normalisationsrc/python_toon/formatter.py— formatting helperssrc/python_toon/writer.py— emit TOON filestests/— unit tests (run withpytest)
Tests
Run the test suite:
pytest -q
Contributing
Open issues or PRs. Please include tests for new behaviors and keep changes focused.
License
See the license file in the project root.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json_toon_fmt-0.1.0.tar.gz.
File metadata
- Download URL: json_toon_fmt-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
248de0958c44c51dbd57d16a55ef5f346200a2fcc5fc3c9205684d3579a89787
|
|
| MD5 |
227e41bb142da8badba8473458f10f57
|
|
| BLAKE2b-256 |
8e525b74fd221ff128ea143d53d33bd590d5bdf155b448991fdd50d857fec381
|
File details
Details for the file json_toon_fmt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: json_toon_fmt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc80593ba4016e6585a3cb7027d83dca2a80dad91dd6e1de7db340d1b145091e
|
|
| MD5 |
c819180b345321388a065d5cfa11cc8b
|
|
| BLAKE2b-256 |
e5398a270ad6cadea06f866dbea4e4504e016603cf100c6d780b67fd15b02c42
|