streamlit module

streamlit_custom_components

Implements custom components that are reused throughout the streamlit app.

streamlit_custom_components.feedback(message: str, start: datetime, df_ordertable: DataFrame | None = None) None[source]

Displays a success message, the order table and the run time of the primer generation process.

Parameters:
  • message (str) – The success message to display.

  • start (datetime) – The start time of the primer generation process.

  • df_ordertable (pd.DataFrame, optional) – The order table to display. Defaults to None.

Returns:

None

streamlit_custom_components.generate_primers(generator_function: callable, *args, **kwargs) DataFrame[source]

Generates primers using the given generator function and its arguments and keyword arguments.

Parameters:
  • generator_function (callable) – The primer generator function.

  • *args – The arguments for the primer generator function.

  • **kwargs – The keyword arguments for the primer generator function.

Raises:

Exception – If the primer generation fails.

Returns:

The order table of the generated primers or an exception if the primer generation fails.

Return type:

pd.DataFrame or Exception

streamlit_custom_components.kuerzel_check(input_kuerzel: str) str[source]

Checks if the input initials are not empty and displays a warning toast if they are.

Parameters:

input_kuerzel (str) – The input initials.

Returns:

The input initials.

Return type:

str

streamlit_help

Implements the help page for the streamlit app.

streamlit_main

Implements the top-level streamlit app that runs the streamlit_primertool and streamlit_help pages.

streamlit_primertool

Implements the core primertool page for the streamlit app.