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.

The TimeToShare! schema, its fixtures, a validator and the fonts.

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.

catalogue

The catalogue of identifier systems, verbs and types, which tools read.

defaults

The defaults of a TimeToShare manifest: the complete and the minimal form.

files

Manifest files: the form a file writes its manifest in, and writing it back.

fixtures

The bundled cases of the current version: fixtures, rejections and warnings.

font

The fonts that draw, and the one table that measures, every text of a drawing.

ids

IDs in a manifest file and in memory.

manifest

The canonical order of a TimeToShare manifest and the respelling of its values.

serialization

The three serializations of a TimeToShare manifest: writing, reading, naming.

statements

Property–value statements about the things a manifest's elements stand for.

styles

Helpers for reading the styles of a manifest's graphical object.

tables

The table types of a TimeToShare package: MatchClaims and Projections.

validation

Mirrored semantic validation rules.