Skip to main content

Module dotl

Module dotl 

Source
Expand description

.dotl project files (ADR-0005).

Structs§

AssetInfo
Asset metadata.
DotlFile
An in-memory .dotl project.
DotlLimits
Reader limits.
LoadReport
Load report.
Manifest
manifest.json.
PluginRequirement
A plugin type used by the document.
Producer
Who wrote the file.

Enums§

DotlError
.dotl errors.

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 .dotl bytes: 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 path atomically: 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 .dotl bytes (deterministic for equal input).