Expand description
.dotl project files (ADR-0005).
Structs§
- Asset
Info - Asset metadata.
- Dotl
File - An in-memory
.dotlproject. - Dotl
Limits - Reader limits.
- Load
Report - Load report.
- Manifest
manifest.json.- Plugin
Requirement - A plugin type used by the document.
- Producer
- Who wrote the file.
Enums§
- Dotl
Error .dotlerrors.
Constants§
- ASSET_
PREFIX - Prefix of text properties that reference an asset:
asset:assets/<sha256>.png. - FORMAT_
VERSION - Container format version written by this library.
- MEDIA_
TYPE - MIME type.
Functions§
- add_
asset - Store an asset and return its container path (content addressed).
- plugin_
requirements - Plugin requirements of a document.
- read_
dotl - Parse
.dotlbytes: bounded container parsing, manifest checks, schema migration, document validation and asset verification. - referenced_
assets - Asset paths referenced by the document (
asset:text properties). - save_
atomic - Write bytes to
pathatomically: a temporary file in the same directory is written and flushed, then renamed over the target. On failure the existing file is left untouched and the temporary file is removed. - sha256_
hex - SHA-256 hex digest.
- write_
dotl - Serialize a project to
.dotlbytes (deterministic for equal input).