aac.context.util

Common utility functions for the context package.

Functions

get_fully_qualified_name(package_name, ...)

Returns the fully qualified name of a class, given the package name and class name.

get_python_class_name(name)

Returns a Python class name from a given name, which may contain dashes and underscores.

get_python_module_name(package_name)

Returns a Python module name, with underscores, from a given package name, which may contain dashes and spaces.

aac.context.util.get_fully_qualified_name(package_name: str, class_name: str) str[source]

Returns the fully qualified name of a class, given the package name and class name.

Parameters:
  • package_name (str)

  • class_name (str)

Return type:

str

aac.context.util.get_python_class_name(name: str) str[source]

Returns a Python class name from a given name, which may contain dashes and underscores.

Parameters:

name (str)

Return type:

str

aac.context.util.get_python_module_name(package_name: str) str[source]

Returns a Python module name, with underscores, from a given package name, which may contain dashes and spaces.

Parameters:

package_name (str)

Return type:

str