tisserande.models.function_types

Pydantic models for function type tables (PythonFunction, MemberFunction, ShellFunction).

Classes

PythonFunctionBase

Model for a python function.

PythonFunctionCreate

Fields used to create a PythonFunction.

PythonFunction

PythonFunction response model.

MemberFunctionBase

Model for a member function.

MemberFunctionCreate

Fields used to create a MemberFunction.

MemberFunction

MemberFunction response model.

ShellFunctionBase

Model for a shell function/script.

ShellFunctionCreate

Fields used to create a ShellFunction.

ShellFunction

ShellFunction response model.

Module Contents

class tisserande.models.function_types.PythonFunctionBase(/, **data: Any)[source]

Bases: pydantic.BaseModel

Model for a python function.

name: str = None[source]
module_: str = None[source]
class tisserande.models.function_types.PythonFunctionCreate(/, **data: Any)[source]

Bases: PythonFunctionBase

Fields used to create a PythonFunction.

class tisserande.models.function_types.PythonFunction(/, **data: Any)[source]

Bases: PythonFunctionBase

PythonFunction response model.

model_config[source]

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

col_names_for_table: ClassVar[list[str]] = ['id_', 'name', 'module_'][source]
id_: int = None[source]
class tisserande.models.function_types.MemberFunctionBase(/, **data: Any)[source]

Bases: pydantic.BaseModel

Model for a member function.

name: str = None[source]
class tisserande.models.function_types.MemberFunctionCreate(/, **data: Any)[source]

Bases: MemberFunctionBase

Fields used to create a MemberFunction.

class_name: str | None = None[source]
class_id: int | None = None[source]
class tisserande.models.function_types.MemberFunction(/, **data: Any)[source]

Bases: MemberFunctionBase

MemberFunction response model.

model_config[source]

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

col_names_for_table: ClassVar[list[str]] = ['id_', 'name', 'class_id'][source]
id_: int = None[source]
class_id: int = None[source]
class tisserande.models.function_types.ShellFunctionBase(/, **data: Any)[source]

Bases: pydantic.BaseModel

Model for a shell function/script.

name: str = None[source]
class tisserande.models.function_types.ShellFunctionCreate(/, **data: Any)[source]

Bases: ShellFunctionBase

Fields used to create a ShellFunction.

class tisserande.models.function_types.ShellFunction(/, **data: Any)[source]

Bases: ShellFunctionBase

ShellFunction response model.

model_config[source]

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

col_names_for_table: ClassVar[list[str]] = ['id_', 'name'][source]
id_: int = None[source]