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.1.1, language version 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). 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.1
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, Block.with_property, replace. An edit that would break the file raises.
  • 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)

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.1.1

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.1.1
File Size Uploaded Provenance Actions
tesserae_dl-0.1.1.tar.gz 62.0 kB With provenance Details for tesserae_dl-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 84.7 kB

Release files / tesserae_dl-0.1.1.tar.gz

Download URL tesserae_dl-0.1.1.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fc766effe9f393753b1f97c02580bb8c9c5b139c365fb0ce9a73039613c63bbc
BLAKE2b-256 checksum
How to use checksums
2af5ff3329fa4285165b753201585a42d07b868fee974b79cf37cf85d8e25a23
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 3, 2026.

Transparency log

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

Download URL tesserae_dl-0.1.1-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e974068979cc603129486d585b33045146fb658d1328fa5f0aba3c330e9bdec5
BLAKE2b-256 checksum
How to use checksums
0075bd2e048507e228d2512d2110ffbd1318361d0e5a671327343589bfd2df8b
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 3, 2026.

Transparency log

Security for tesserae-dl 0.1.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tesserae_dl-0.1.1.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 3, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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