Skip to content

orcalib.client_data_model#

ApiFilter #

Bases: BaseModel

Client-side model of a filter that’s used with calls to select(...)

SimpleTableQueryRequest #

Bases: BaseModel

Client-side model of the request to the simple_table_query endpoint.

NOTE

This is currently a duplicate of the server’s model, but we want them to remain separate for now, since the client’s model may change in the future.

TableRowResponse #

Bases: TypedDict

Client-side model of a row in the response from the simple_table_query endpoint.

TableSelectResponse #

Bases: TypedDict

Client-side model of the response from the simple_table_query endpoint.

decode_ndarray #

decode_ndarray(obj)

Decode a JSON object that was encoded with encode_ndarray.

TODO: This needs to be generalized to use the type handles to decode column types.

Parameters:

  • obj (Any) –

    The object to decode

Returns:

  • Any

    The decoded object