nat.front_ends.fastapi.utils#

Functions#

get_config_file_path(→ str)

Get the path to the NAT configuration file from the environment variable NAT_CONFIG_FILE.

import_class_from_string(→ type)

Import a class from a string in the format 'module.submodule.ClassName'.

get_class_name(→ str)

Get the full class name including the module.

Module Contents#

get_config_file_path() str#

Get the path to the NAT configuration file from the environment variable NAT_CONFIG_FILE. Raises ValueError if the environment variable is not set.

import_class_from_string(class_full_name: str) type#

Import a class from a string in the format ‘module.submodule.ClassName’. Raises ImportError if the class cannot be imported.

get_class_name(cls: type) str#

Get the full class name including the module.