Argument types¶
uptimely.spec.arg_types defines argument types used in Spec documents.
Collections can be described with array_of() and object_values_of().
Argument type names and helpers for spec function arguments.
AtomicArgumentType
module-attribute
¶
AtomicArgumentType = typing.Literal['dataframe', 'string', 'integer', 'float', 'boolean', 'array', 'object']
ATOMIC_ARGUMENT_TYPES
module-attribute
¶
array_of
¶
Return the spec expression for an array with homogeneous item types.
object_values_of
¶
Return the spec expression for a string-keyed object with homogeneous values.
array_item_type
¶
Return the item type from an array expression, if it is homogeneous.
object_value_type
¶
Return the value type from a homogeneous string-keyed object expression.