leaguemanager.lib.toolbox

Module Contents

Functions

clear_table

Clears table of given model.

str_to_iso

Converts string to datetime object.

module_to_os_path

Get the string path of the module.

Data

__all__

API

leaguemanager.lib.toolbox.__all__

[‘slugify’, ‘clear_table’, ‘str_to_iso’, ‘module_to_os_path’]

leaguemanager.lib.toolbox.clear_table(session: sqlalchemy.orm.Session, model: leaguemanager.models.base.UUIDBase) None

Clears table of given model.

leaguemanager.lib.toolbox.str_to_iso(date_string: str, format: str)

Converts string to datetime object.

leaguemanager.lib.toolbox.module_to_os_path(module_name: str) pathlib.Path

Get the string path of the module.