tatami._utils module

tatami._utils.camel_to_snake(name)[source]
Parameters:

name (str)

Return type:

str

tatami._utils.get_request_type(fn)[source]
Parameters:

fn (Callable)

Return type:

dict[str, Type[BaseModel]]

tatami._utils.human_friendly_description_from_name(name)[source]
Parameters:

name (str)

Return type:

str

tatami._utils.import_from_path(path)[source]
Parameters:

path (str)

Return type:

ModuleType

tatami._utils.path_to_module(path)[source]
Parameters:

path (str)

Return type:

str

tatami._utils.route_priority(endpoint)[source]
Parameters:

endpoint (BoundEndpoint)

Return type:

tuple[int, int, int, str, str]

tatami._utils.update_dict(d, update_with)[source]
Parameters:
  • d (dict)

  • update_with (dict)

tatami._utils.with_new_base(cls, new_base)[source]
Parameters:
  • cls (Type)

  • new_base (Type)

Return type:

Type

tatami._utils.wrap_response(ep_fn, ep_result)[source]
Parameters:
  • ep_fn (Callable)

  • ep_result (Any)

Return type:

Response