Skip to main content

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 normalisation
  • src/python_toon/formatter.py — formatting helpers
  • src/python_toon/writer.py — emit TOON files
  • tests/ — unit tests (run with pytest)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json_toon_fmt-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_toon_fmt-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for json_toon_fmt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 248de0958c44c51dbd57d16a55ef5f346200a2fcc5fc3c9205684d3579a89787
MD5 227e41bb142da8badba8473458f10f57
BLAKE2b-256 8e525b74fd221ff128ea143d53d33bd590d5bdf155b448991fdd50d857fec381

See more details on using hashes here.

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

Hashes for json_toon_fmt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc80593ba4016e6585a3cb7027d83dca2a80dad91dd6e1de7db340d1b145091e
MD5 c819180b345321388a065d5cfa11cc8b
BLAKE2b-256 e5398a270ad6cadea06f866dbea4e4504e016603cf100c6d780b67fd15b02c42

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page