aito.schema.AitoIntType

class aito.schema.AitoIntType
Parameters

aito_dtype (str) – the Aito data type

Methods

from_deserialized_object(obj)

create an AitoSchema object from a JSON deserialized object

from_json_string(json_string, **kwargs)

create an AitoSchema object from a JSON string

infer_from_samples(samples[, max_sample_size])

infer AitoDataType from the given samples

to_json_serializable()

convert the AitoSchema object to a json serializable object (dict, in most case)

to_json_string(**kwargs)

the AitoSchema object as a JSON string

to_python_type()

the equivalent python type

Attributes

aito_dtype

the data type

comparison_properties

iterable of the properties that will be used for comparison with another schema object of the same type

is_bool

true if the data type is Boolean

is_decimal

true if the data type is Decimal

is_int

true if the data type is Int

is_string

true if the data type is String

is_text

true if the data type is Text

type

the type of the schema component