tisserande.local_async.function_types

Attributes

python_function

member_function

shell_function

Classes

PythonFunctionLocalOperations

Base class for table-specific local operations.

MemberFunctionLocalOperations

Base class for table-specific local operations.

ShellFunctionLocalOperations

Base class for table-specific local operations.

Module Contents

class tisserande.local_async.function_types.PythonFunctionLocalOperations(table_operations: macon.db_oper.base.TableOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_async.base.LocalOperations[tisserande.db.function_types.PythonFunctionTable, tisserande.models.PythonFunction, tisserande.models.PythonFunctionCreate]

Base class for table-specific local operations.

Dynamically binds API functions as methods on this instance, pre-bound with the table operations. All methods are async.

Examples

>>> from rail_svc.local import algorithm
>>>
>>> # In async context
>>> algo = await algorithm.get_row(row_id=1)
>>> algos = await algorithm.get_rows(limit=10)
class tisserande.local_async.function_types.MemberFunctionLocalOperations(table_operations: macon.db_oper.base.TableOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_async.base.LocalOperations[tisserande.db.function_types.MemberFunctionTable, tisserande.models.MemberFunction, tisserande.models.MemberFunctionCreate]

Base class for table-specific local operations.

Dynamically binds API functions as methods on this instance, pre-bound with the table operations. All methods are async.

Examples

>>> from rail_svc.local import algorithm
>>>
>>> # In async context
>>> algo = await algorithm.get_row(row_id=1)
>>> algos = await algorithm.get_rows(limit=10)
class tisserande.local_async.function_types.ShellFunctionLocalOperations(table_operations: macon.db_oper.base.TableOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_async.base.LocalOperations[tisserande.db.function_types.ShellFunctionTable, tisserande.models.ShellFunction, tisserande.models.ShellFunctionCreate]

Base class for table-specific local operations.

Dynamically binds API functions as methods on this instance, pre-bound with the table operations. All methods are async.

Examples

>>> from rail_svc.local import algorithm
>>>
>>> # In async context
>>> algo = await algorithm.get_row(row_id=1)
>>> algos = await algorithm.get_rows(limit=10)
tisserande.local_async.function_types.python_function[source]
tisserande.local_async.function_types.member_function[source]
tisserande.local_async.function_types.shell_function[source]