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.
Metadata
Release files for json-toon-fmt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| json_toon_fmt-0.1.0.tar.gz | 8.2 kB | Without provenance | Details for json_toon_fmt-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| json_toon_fmt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for json_toon_fmt-0.1.0-py3-none-any.whl |
Total release size: 17.3 kB
Release files / json_toon_fmt-0.1.0.tar.gz
| Download URL | json_toon_fmt-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
248de0958c44c51dbd57d16a55ef5f346200a2fcc5fc3c9205684d3579a89787
|
|
BLAKE2b-256 checksum How to use checksums |
8e525b74fd221ff128ea143d53d33bd590d5bdf155b448991fdd50d857fec381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / json_toon_fmt-0.1.0-py3-none-any.whl
| Download URL | json_toon_fmt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc80593ba4016e6585a3cb7027d83dca2a80dad91dd6e1de7db340d1b145091e
|
|
BLAKE2b-256 checksum How to use checksums |
e5398a270ad6cadea06f866dbea4e4504e016603cf100c6d780b67fd15b02c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for json-toon-fmt 0.1.0
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.