time_split_app.config#
Configuration namespace.
Values in this module are treated as hard limits by the server.
Module Attributes
Enable plot in the 🔍 Show raw data tab. |
|
Enable plots in the 📈 Aggregations per fold tab. |
|
Controls figure fidelity. |
|
Upper fold count limit. |
|
Maximum number of display and plot in 🔍 Show raw data tab. |
|
Dataset configuration TOML path. |
|
If set, refuse to start if the |
|
Frequency with which the |
|
Cache timeout in seconds. |
|
Maximum number of dataset options to show as radio buttons. |
|
Set to |
|
Initial range callback for generated data. |
|
Abort if URL parameters are given when |
|
Public base address for the application. |
|
Disable to use the default Streamlit styling. |
|
Set to |
|
Set to |
|
Level for the time_split_app.performance logger. |
|
If |
|
A custom loader implementation. |
|
Custom splitting parameters selection function. |
|
A custom plotting function; same interface as |
|
A custom link function; same interface as |
|
Enable to show debug information in the UI. |
Functions
Get config key descriptions. |
|
Get the readonly server configuration. |
|
Get config values as a dict. |
- MAX_SPLITS = 100#
Upper fold count limit. Prevents figures from getting too large.
- DATASETS_CONFIG_PATH: str = 'datasets.toml'#
Dataset configuration TOML path. Disable the dataset view if not found.
May be remote, e.g.
s3://my-bucket/data/datasets.tomlfor AWS blob storage.
- REQUIRE_DATASETS: bool = False#
If set, refuse to start if the
DATASETS_CONFIG_PATHfile cannot be read or is invalid.
- DATASET_CONFIG_CACHE_TTL: int = 30#
Frequency with which the
DATASETS_CONFIG_PATHis read.
- DATASET_RADIO_LIMIT: int = 3#
Maximum number of dataset options to show as radio buttons.
Radio buttons are shown with one-line descriptions and all options visible at once. If this limit is exceeded, the UI shows a label-only dropdown menu instead. Set to zero to always use the dropdown menu.
- DATA_GENERATOR_INITIAL_RANGE_FN: str = ''#
Initial range callback for generated data.
Type:
() -> (start, end).Format:
path.to.module:func_name.
- CONFIGURE_PLOTTING = True#
Set to
Falseto disable the default plotting style setup.
- CONFIGURE_LOGGING = True#
Set to
Falseto disable the default logging setup.
- PERFORMANCE_LOG_LEVEL: int = 20#
Level for the time_split_app.performance logger. Default is
logging.INFO=20.
- DATASET_LOADER: str = ''#
A custom loader implementation.
Type:
DataLoaderWidgetFormat:
path.to.module:ClassName(or an instance thereof).
- SPLIT_SELECT_FN: str = ''#
Custom splitting parameters selection function.
Type:
() -> DatetimeIndexSplitterKwargs.Format:
path.to.module:func_name.
To read params produced by
create_explorer_link(), use>>> from time_split_app.widgets.types import QueryParams >>> QueryParams.get()
Of course, you may also choose to handle this yourself using
st.query_params.
- PLOT_FN: str = ''#
A custom plotting function; same interface as
time_split.plot().Type:
(...) -> Axes.Format:
path.to.module:func_name.
- LINK_FN: str = ''#
A custom link function; same interface as
create_explorer_link().Type:
(...) -> str.Format:
path.to.module:func_name.
May break the
QueryParamsclass.