scalar.value

Value types such as Nil, Number, and String.

class tinychain.scalar.value.Bytes(form=None)[source]

Bases: Value

A binary Value

class tinychain.scalar.value.EmailAddress(form=None)[source]

Bases: Value

An email address

class tinychain.scalar.value.Id(form=None)[source]

Bases: Value

An identifier

class tinychain.scalar.value.Nil(form=None)[source]

Bases: Value

A Value to represent None.

class tinychain.scalar.value.String(form=None)[source]

Bases: Value

A string.

class tinychain.scalar.value.Value(form=None)[source]

Bases: Scalar, Compare, Order

A scalar Value which supports equality and collation.

eq(other)[source]

Returns True if self is equal to other.

gt(other)[source]

Return True if self is greater than other.

gte(other)[source]

Return True if self is greater than or equal to other.

lt(other)[source]

Return True if self is less than other.

lte(other)[source]

Return True if self is less than or equal to other.

class tinychain.scalar.value.Version(form=None)[source]

Bases: Value

A semantic version of the form <major>.<minor>.<rev>, e.g. 1.2.34

See https://semver.org for the full specification.