tisserande.local_sync.function_types

Attributes

python_function

member_function

shell_function

Classes

PythonFunctionSyncOperations

Synchronous wrapper for local operations.

MemberFunctionSyncOperations

Synchronous wrapper for local operations.

ShellFunctionSyncOperations

Synchronous wrapper for local operations.

Module Contents

class tisserande.local_sync.function_types.PythonFunctionSyncOperations(async_ops: macon.local_async.base.LocalOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_sync.base.SyncOperations[tisserande.db.function_types.PythonFunctionTable, tisserande.models.PythonFunction, tisserande.models.PythonFunctionCreate]

Synchronous wrapper for local operations.

Wraps async LocalOperations methods to provide synchronous versions for use in non-async contexts like CLI commands or scripts.

WARNING: These methods use asyncio.run() internally and cannot be called from within an already-running event loop.

class tisserande.local_sync.function_types.MemberFunctionSyncOperations(async_ops: macon.local_async.base.LocalOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_sync.base.SyncOperations[tisserande.db.function_types.MemberFunctionTable, tisserande.models.MemberFunction, tisserande.models.MemberFunctionCreate]

Synchronous wrapper for local operations.

Wraps async LocalOperations methods to provide synchronous versions for use in non-async contexts like CLI commands or scripts.

WARNING: These methods use asyncio.run() internally and cannot be called from within an already-running event loop.

class tisserande.local_sync.function_types.ShellFunctionSyncOperations(async_ops: macon.local_async.base.LocalOperations[T, ResponseT, CreateT])[source]

Bases: macon.local_sync.base.SyncOperations[tisserande.db.function_types.ShellFunctionTable, tisserande.models.ShellFunction, tisserande.models.ShellFunctionCreate]

Synchronous wrapper for local operations.

Wraps async LocalOperations methods to provide synchronous versions for use in non-async contexts like CLI commands or scripts.

WARNING: These methods use asyncio.run() internally and cannot be called from within an already-running event loop.

tisserande.local_sync.function_types.python_function[source]
tisserande.local_sync.function_types.member_function[source]
tisserande.local_sync.function_types.shell_function[source]