polywrap_wasm.types.wasm_invoke_options module

This module contains the InvokeOptions type for a Wasm wrapper.

class polywrap_wasm.types.wasm_invoke_options.WasmInvokeOptions(*, uri: Uri, method: str, args: dict[str, Any] | None = None, env: dict[str, Any] | None = None, resolution_context: UriResolutionContext | None = None)[source]

Bases: object

WasmInvokeOptions is a dataclass that holds the options for an invocation.

Parameters:
  • uri (Uri) – The URI of the wrapper.

  • method (str) – The method to invoke.

  • args (Optional[dict[str, Any]]) – The arguments to pass to the method.

  • env (Optional[dict[str, Any]]) – The environment variables to set for the invocation.

  • resolution_context (Optional[UriResolutionContext]) – A URI resolution context.

args: dict[str, Any] | None
env: dict[str, Any] | None
method: str
resolution_context: UriResolutionContext | None
uri: Uri