Skip to main content

TDL

TDL, the Tesserae Data Language, is a small structure-only language for the files the Tesserae Shell reads: blocks, properties and values. tess_dl is the Python library that reads it into a tree that keeps everything in the file (comments, layout, positions), reports every mistake with file:line:column, and writes the text back unchanged except for an edit you ask for.

Status: alpha, package 0.2.0, language version 0.2 (slots are written <| |>; see the changelog for the move from 0.1). The import name changed from tdl to tess_dl in 0.1.1 (see CHANGELOG.md). The API may change before 1.0 (a minor version may break it; see docs/versioning.md). Documentation site: https://mindderivative.github.io/tess-dl/. The language is in docs/language.md, the API in docs/api.md, the reasons for the choices in docs/decisions.md.

tess_dl needs Python 3.14 or later and has no dependencies:

pip install tesserae-dl
import tess_dl

text = """\
---
TDL: 0.2
Name: Shell_Root
---
Shell {
  Bar { Name: Top_Bar, Height: 32 }   # pixels
}
"""

doc = tess_dl.loads(text, path="Main_Shell.tdl")  # raises TDLSyntaxError on the first mistake
doc.root.type  # 'Shell'
doc.find("Shell_Root.Top_Bar").name  # 'Top_Bar'
assert tess_dl.dumps(doc) == text  # the exact text back, byte for byte

broken = text.replace("Height: 32", "Height 32")
result = tess_dl.parse(broken)  # never raises for a syntax error
[str(e) for e in result.errors]  # every error, in source order, up to 50

doc2 = doc.with_metadata("UID", "0192d3c4")  # one edit: every other byte is unchanged
doc3 = doc.find("Shell_Root.Top_Bar").with_property("Height", "40")
  • loads, load (a binary file object), parse, dumps, dump.
  • A tree of Document, Metadata, Block, Property, If, For and Comment, with Word, String, Number, Percent, Call, List, Slot and Template for values. Nodes are immutable, keep where they came from (node.origin), and are safe to share between threads.
  • Edits return a new Document and change only the bytes they name: with_metadata, without_metadata, replace, and on a block with_property, without_property, with_child, without_child, move_child, and on an If or For with_condition, with_items, with_key, with_variable. An edit that would break the file raises. Block.index_path and Document.at address a block by position, format_block and format write the canonical layout.
  • 22 error codes, each with a plain message, a hint and a position (tdl-bare-hash: "This colour needs quotes. Quote the colour: "#ffffff""). The list is in docs/language.md.
  • Limits (tess_dl.Limits): 1 MiB of text, 50 errors, 64 levels of nesting.
  • Not in 0.1: checking keys or types (that is the program's, such as the shell), building a tree in code and formatting it, to_data(), a command line. See docs/api.md.

A 100 KB file reads in about 13 ms and a file at the 1 MiB limit in about 140 ms (docs/benchmarks.md).

PyPI name: tesserae-dl. Import name: tess_dl.

The conformance corpus

tests/corpus/ holds the files and expected results that define the language: valid files with their normalised content, files with each error and its position, and edits with their result. It ships in the source distribution (not in the wheel) as test data, and the Tesserae Shell reads it. New cases come from a TDL-REQ-### through the maintainer; see .agents/skills/conformance-corpus/SKILL.md.

Development

uv pip install -e . --group dev   # into the active venv (Python 3.14+)
python tools/check.py             # ruff, format check, mypy (strict), pytest: what CI runs
python benchmarks/bench.py        # timing against the budget (docs/benchmarks.md)
mkdocs serve                      # the docs site locally (uv pip install --group docs)

Work is tracked on the Tesserae Data Language board (python tools/board.py status). Agent instructions are in AGENTS.md; project skills are in .agents/skills/.

Versioning

See docs/versioning.md.

Licence

MIT

Metadata

Release files for tesserae-dl 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tesserae-dl 0.2.0
File Size Uploaded Provenance Actions
tesserae_dl-0.2.0.tar.gz 87.7 kB With provenance Details for tesserae_dl-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tesserae-dl 0.2.0
File Interpreter ABI Platform Actions
tesserae_dl-0.2.0-py3-none-any.whl Python 3 none any Details for tesserae_dl-0.2.0-py3-none-any.whl

Total release size: 120.0 kB

Release files / tesserae_dl-0.2.0.tar.gz

Download URL tesserae_dl-0.2.0.tar.gz
Size 87.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ade110405f867c716b5daeb347a79f60e87c3906fbf01875c0665cb558f0ae72
BLAKE2b-256 checksum
How to use checksums
dbaedcf38fabab07eb76d5d5b51038ad6b10342f526239eb575a12552e329950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / tesserae_dl-0.2.0-py3-none-any.whl

Download URL tesserae_dl-0.2.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0da551f7715298c080a3d03e21152de7b877b97b2f95e52aed9c2fe4cca963e1
BLAKE2b-256 checksum
How to use checksums
2c5f39a37a47ff3b2ba5258b3b7383cbafe7ef14779309abeb5a3b443c54d598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for tesserae-dl 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tesserae_dl-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page