schema#

tradingstrategy.utils.schema Python module in Trading Strategy framework.

Module description#

Schema manipulation utitilies.

Constructing PyArrow schemas.

Note

Legacy. This module is likely to be removed.

For more information about Pyarrow Schemas, see https://arrow.apache.org/docs/python/api/datatypes.html

Functions#

append_to_columnar_work_buffer(buffer, item)

Convert tabular data items to columnar.

create_columnar_work_buffer(cls)

Create a columnar work buffer to export data into Pyarrow Tables.

create_pyarrow_schema_for_dataclass(cls[, ...])

Map a Python dataclass to Pyarrow schema.

map_field_to_arrpw(field, hints, core_mappings)

Map a dataclass field to a pyarrow equivalent, respect hints

unmappable(t)