bayesline.api.equity.UploadersApi#

class bayesline.api.equity.UploadersApi#

Expose uploaders for different data types, e.g. exposures, portfolios, etc.

__init__()#

Methods

__init__()

get_data_type(data_type)

Get a specific data type uploader.

get_data_types()

Get the list of available data types.

get_freshness()

Summarize the most recent commit per data type.

abstract get_data_types() list[str]#

Get the list of available data types.

Returns#

list[str]

A sorted list of available upload data types, e.g. “exposures”, “portfolios”, etc.

abstract get_data_type(data_type: str) DataTypeUploaderApi#

Get a specific data type uploader.

Parameters#

data_typestr

The data type of the uploader to obtain. One of the data types returned by get_data_types.

Raises#

KeyError

If the given data type does not exist.

Returns#

DataTypeUploaderApi

The uploader for the given data type.

get_freshness() list[UploadDataTypeFreshness]#

Summarize the most recent commit per data type.

Returns#

list[UploadDataTypeFreshness]

One entry per data type that has at least one committed dataset, carrying the latest commit timestamp across all of that data type’s datasets. Data types with no commits are omitted.