Python API#
The package timetoshare validates, reads and writes manifests and checks
the table types. Install it with pip install timetoshare, and with
pip install "timetoshare[tables]" for timetoshare.tables.
The package root re-exports the public names of its modules (its
__all__), so from timetoshare import validate and
from timetoshare.validate import validate name the same function. Each
name is documented in the module that defines it. The validator,
timetoshare.validate, has its own page, since the package
root’s validate is the function of that name.
A TimeToShare manifest is one JSON object holding the version marker
timetoshare and an array of root timelines, each describing a musical
timeline as timetoalign serializes it, optionally named, optionally
attributing timelines to groups, optionally describing the things the
manifest, its timelines and its regions stand for by property–value
statements with their provenance (timetoshare.statements, read in words
through the catalogue of identifier systems, verbs and types,
timetoshare.catalogue) and optionally styled for drawing. An editor can
place many manifests on a canvas, but a manifest knows nothing about where
or how often it is placed.
The catalogue of identifier systems, verbs and types, which tools read. |
|
The defaults of a TimeToShare manifest: the complete and the minimal form. |
|
Manifest files: the form a file writes its manifest in, and writing it back. |
|
The bundled cases of the current version: fixtures, rejections and warnings. |
|
The fonts that draw, and the one table that measures, every text of a drawing. |
|
IDs in a manifest file and in memory. |
|
The canonical order of a TimeToShare manifest and the respelling of its values. |
|
The three serializations of a TimeToShare manifest: writing, reading, naming. |
|
Property–value statements about the things a manifest's elements stand for. |
|
Helpers for reading the styles of a manifest's |
|
The table types of a TimeToShare package: MatchClaims and Projections. |
|
Mirrored semantic validation rules. |