sdk-python の API リファレンス
sdk-python (temporalio/sdk-python) の公開 API 400 件 —— クラス 179、関数 31、メソッド 190。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: temporalio/sdk-python
| 種別 | 件数 |
|---|---|
| クラス | 179 |
| 関数 | 31 |
| メソッド | 190 |
API 一覧
class
temporalio.activity.ActivityCancellationDetailsProvides the reasons for the activity's cancellation.
class
temporalio.activity.InfoInformation about the running activity.
method
temporalio.activity.Info.in_workflow() -> boolWas this activity started by a workflow?
func
temporalio.activity.client() -> ClientReturn a Temporal Client for use in the current activity.
func
temporalio.activity.heartbeat(*details:Any) -> NoneSend a heartbeat for the current activity.
func
temporalio.activity.in_activity() -> boolWhether the current code is inside an activity.
func
temporalio.activity.info() -> InfoCurrent activity's info.
func
temporalio.activity.is_worker_shutdown() -> boolWhether shutdown has been invoked on the worker.
func
temporalio.activity.metric_meter() -> temporalio.common.MetricMeterGet the metric meter for the current activity.
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.CreateUser(request, context)Create a user
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.DeleteUser(request, context)Delete a user
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetApiKey(request, context)Get an API key
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetAuditLogs(request, context)Get audit logs
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetNamespace(request, context)Get a namespace
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetRegion(request, context)Get a region
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetRegions(request, context)Get all regions
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetUser(request, context)Get a user
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.GetUserGroup(request, context)Get a user group
method
temporalio.api.cloud.cloudservice.v1.service_pb2_grpc.CloudServiceServicer.UpdateUser(request, context)Update a user
method
temporalio.api.workflowservice.v1.service_pb2_grpc.WorkflowServiceServicer.GetWorkerTaskReachability(request, context)Deprecated.
class
temporalio.bridge._visitor.PayloadVisitorA visitor for payloads.
method
temporalio.bridge._visitor.PayloadVisitor.visit(fs:VisitorFunctions, root:Any) -> NoneVisits the given root message with the given function.
class
temporalio.bridge._visitor_functions.VisitorFunctionsFunctions invoked by generated payload visitors.
method
temporalio.bridge._visitor_functions.VisitorFunctions.drain_since(_checkpoint:int) -> NoneWait for visits scheduled after ``checkpoint`` to finish.
method
temporalio.bridge._visitor_functions.VisitorFunctions.visit_payload(payload:Payload) -> NoneVisit a single payload.
method
temporalio.bridge._visitor_functions.VisitorFunctions.visit_payloads(payloads:PayloadSequence) -> NoneVisit a sequence of payloads together.
method
temporalio.bridge._visitor_functions.VisitorFunctions.visit_system_nexus_envelope(_payload:Payload) -> NoneVisit a recognized system Nexus envelope payload.
class
temporalio.bridge.client.ClientRPC client using SDK Core.
method
temporalio.bridge.client.Client.call(*service:str, *rpc:str, *req:google.protobuf.message.Message, *resp_type:type[ProtoMessage], *retry:bool, *metadata:Mapping[str, str | bytes], *timeout:timedelta | None) -> ProtoMessageMake RPC call using SDK Core.
method
temporalio.bridge.client.Client.connect(runtime:temporalio.bridge.runtime.Runtime, config:ClientConfig) -> ClientEstablish connection with server.
method
temporalio.bridge.client.Client.update_api_key(api_key:str | None) -> NoneUpdate underlying API key on Core client.
method
temporalio.bridge.client.Client.update_metadata(metadata:Mapping[str, str | bytes]) -> NoneUpdate underlying metadata on Core client.
class
temporalio.bridge.client.ClientTlsConfigPython representation of the Rust struct for configuring TLS.
class
temporalio.bridge.client.RpcCallPython representation of the Rust struct for an RPC call.
class
temporalio.bridge.metric.MetricAttributesMetric attributes using SDK Core.
method
temporalio.bridge.metric.MetricAttributes.with_additional_attributes(new_attrs:Mapping[str, str | int | float | bool]) -> MetricAttributesCreate new attributes with new attributes appended.
class
temporalio.bridge.metric.MetricCounterMetric counter using SDK Core.
method
temporalio.bridge.metric.MetricCounter.add(value:int, attrs:MetricAttributes) -> NoneAdd value to counter.
class
temporalio.bridge.metric.MetricGaugeMetric gauge using SDK Core.
method
temporalio.bridge.metric.MetricGauge.set(value:int, attrs:MetricAttributes) -> NoneSet value on gauge.
class
temporalio.bridge.metric.MetricGaugeFloatMetric gauge using SDK Core.
method
temporalio.bridge.metric.MetricGaugeFloat.set(value:float, attrs:MetricAttributes) -> NoneSet value on gauge.
class
temporalio.bridge.metric.MetricHistogramMetric histogram using SDK Core.
method
temporalio.bridge.metric.MetricHistogram.record(value:int, attrs:MetricAttributes) -> NoneRecord value on histogram.
class
temporalio.bridge.metric.MetricHistogramDurationMetric histogram using SDK Core.
method
temporalio.bridge.metric.MetricHistogramDuration.record(value_ms:int, attrs:MetricAttributes) -> NoneRecord value on histogram.
class
temporalio.bridge.metric.MetricHistogramFloatMetric histogram using SDK Core.
method
temporalio.bridge.metric.MetricHistogramFloat.record(value:float, attrs:MetricAttributes) -> NoneRecord value on histogram.
class
temporalio.bridge.metric.MetricMeterMetric meter using SDK Core.
method
temporalio.bridge.metric.MetricMeter.create(runtime:temporalio.bridge.runtime.Runtime) -> MetricMeter | NoneCreate optional metric meter.
method
temporalio.bridge.metric.MetricMeter.default_attributes() -> MetricAttributesDefault attributes for the metric meter.
class
temporalio.bridge.runtime.BufferedLogEntryA buffered log entry.
method
temporalio.bridge.runtime.BufferedLogEntry.fields() -> dict[str, Any]Additional log entry fields.
method
temporalio.bridge.runtime.BufferedLogEntry.level() -> intPython log level, with trace as 9.
method
temporalio.bridge.runtime.BufferedLogEntry.message() -> strLog message.
method
temporalio.bridge.runtime.BufferedLogEntry.target() -> strTarget category for the log entry.
method
temporalio.bridge.runtime.BufferedLogEntry.time() -> floatTime as from ``time.time`` since Unix epoch.
class
temporalio.bridge.runtime.MetricsConfigPython representation of the Rust struct for metrics config.
class
temporalio.bridge.runtime.RuntimeRuntime for SDK Core.
method
temporalio.bridge.runtime.Runtime.retrieve_buffered_metrics(durations_as_seconds:bool) -> Sequence[Any]Get buffered metrics.
method
temporalio.bridge.runtime.Runtime.write_test_debug_log(message:str, extra_data:str) -> NoneWrite a test core log at DEBUG level.
method
temporalio.bridge.runtime.Runtime.write_test_info_log(message:str, extra_data:str) -> NoneWrite a test core log at INFO level.
class
temporalio.bridge.services_generated.CloudServiceRPC calls for the CloudService.
class
temporalio.bridge.services_generated.HealthServiceRPC calls for the HealthService.
class
temporalio.bridge.services_generated.OperatorServiceRPC calls for the OperatorService.
class
temporalio.bridge.services_generated.TestServiceRPC calls for the TestService.
class
temporalio.bridge.services_generated.WorkflowServiceRPC calls for the WorkflowService.
class
temporalio.bridge.testing.EphemeralServerPython representation of a Rust ephemeral server.
method
temporalio.bridge.testing.EphemeralServer.has_test_service() -> boolWhether this server supports the test service.
method
temporalio.bridge.testing.EphemeralServer.shutdown() -> NoneShutdown this server.
method
temporalio.bridge.testing.EphemeralServer.start_dev_server(runtime:temporalio.bridge.runtime.Runtime, config:DevServerConfig) -> EphemeralServerStart a dev server instance.
method
temporalio.bridge.testing.EphemeralServer.start_test_server(runtime:temporalio.bridge.runtime.Runtime, config:TestServerConfig) -> EphemeralServerStart a test server instance.
method
temporalio.bridge.testing.EphemeralServer.target() -> strFrontend address.
class
temporalio.bridge.worker.WorkerSDK Core worker.
method
temporalio.bridge.worker.Worker.complete_activity_task(comp:temporalio.bridge.proto.ActivityTaskCompletion) -> NoneComplete an activity task.
method
temporalio.bridge.worker.Worker.complete_nexus_task(comp:temporalio.bridge.proto.nexus.NexusTaskCompletion) -> NoneComplete a nexus task.
method
temporalio.bridge.worker.Worker.complete_workflow_activation(comp:temporalio.bridge.proto.workflow_completion.WorkflowActivationCompletion) -> NoneComplete a workflow activation.
method
temporalio.bridge.worker.Worker.create(client:temporalio.bridge.client.Client, config:WorkerConfig) -> WorkerCreate a bridge worker from a bridge client.
method
temporalio.bridge.worker.Worker.finalize_shutdown() -> NoneFinalize the worker.
method
temporalio.bridge.worker.Worker.for_replay(runtime:temporalio.bridge.runtime.Runtime, config:WorkerConfig) -> tuple[Worker, temporalio.bridge.temporal_sdk_bridge.HistoryPusher]Create a bridge replay worker.
method
temporalio.bridge.worker.Worker.initiate_shutdown() -> NoneStart shutdown of the worker.
method
temporalio.bridge.worker.Worker.poll_activity_task() -> temporalio.bridge.proto.activity_task.ActivityTaskPoll for an activity task.
method
temporalio.bridge.worker.Worker.poll_nexus_task() -> temporalio.bridge.proto.nexus.NexusTaskPoll for a nexus task.
method
temporalio.bridge.worker.Worker.poll_workflow_activation() -> temporalio.bridge.proto.workflow_activation.WorkflowActivationPoll for a workflow activation.
method
temporalio.bridge.worker.Worker.record_activity_heartbeat(comp:temporalio.bridge.proto.ActivityHeartbeat) -> NoneRecord an activity heartbeat.
method
temporalio.bridge.worker.Worker.replace_client(client:temporalio.bridge.client.Client) -> NoneReplace the worker client.
method
temporalio.bridge.worker.Worker.request_workflow_eviction(run_id:str) -> NoneRequest a workflow be evicted.
method
temporalio.bridge.worker.Worker.validate() -> temporalio.bridge.proto.NamespaceInfoValidate the bridge worker.
method
temporalio.client._activity.ActivityExecutionAsyncIterator.fetch_next_page(*page_size:int | None=None) -> NoneFetch the next page of results.
method
temporalio.client._activity.ActivityExecutionAsyncIterator.next_page_token() -> bytes | NoneToken for the next page request if any.
class
temporalio.client._activity.ActivityExecutionStatusStatus of an activity execution.
class
temporalio.client._activity.AsyncActivityIDReferenceReference to an async activity by its qualified ID.
class
temporalio.client._client.ClientClient for accessing Temporal.
method
temporalio.client._client.Client.api_key() -> str | NoneAPI key for every call made by this client.
method
temporalio.client._client.Client.config(*active_config:bool=False) -> ClientConfigConfig, as a dictionary, used to create this client.
method
temporalio.client._client.Client.count_workflows(query:str | None=None, rpc_metadata:Mapping[str, str | bytes]={}, rpc_timeout:timedelta | None=None) -> WorkflowExecutionCountCount workflows.
method
temporalio.client._client.Client.data_converter() -> temporalio.converter.DataConverterData converter used by this client.
method
temporalio.client._client.Client.get_schedule_handle(id:str) -> ScheduleHandleGet a schedule handle for the given ID.
method
temporalio.client._client.Client.identity() -> strIdentity used in calls by this client.
method
temporalio.client._client.Client.list_schedules(query:str | None=None, *page_size:int=1000, *next_page_token:bytes | None=None, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> ScheduleAsyncIteratorList schedules.
method
temporalio.client._client.Client.list_workflows(query:str | None=None, *limit:int | None=None, *page_size:int=1000, *next_page_token:bytes | None=None, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> WorkflowExecutionAsyncIteratorList workflows.
method
temporalio.client._client.Client.namespace() -> strNamespace used in calls by this client.
method
temporalio.client._client.Client.operator_service() -> temporalio.service.OperatorServiceRaw gRPC operator service client.
method
temporalio.client._client.Client.rpc_metadata() -> Mapping[str, str | bytes]Headers for every call made by this client.
method
temporalio.client._client.Client.service_client() -> temporalio.service.ServiceClientRaw gRPC service client.
method
temporalio.client._client.Client.workflow_service() -> temporalio.service.WorkflowServiceRaw gRPC workflow service client.
class
temporalio.client._cloud.CloudOperationsClientClient for accessing Temporal Cloud Operations API.
method
temporalio.client._cloud.CloudOperationsClient.api_key() -> str | NoneAPI key for every call made by this client.
method
temporalio.client._cloud.CloudOperationsClient.cloud_service() -> temporalio.service.CloudServiceRaw gRPC cloud service client.
method
temporalio.client._cloud.CloudOperationsClient.identity() -> strIdentity used in calls by this client.
method
temporalio.client._cloud.CloudOperationsClient.service_client() -> temporalio.service.ServiceClientRaw gRPC service client.
class
temporalio.client._exceptions.ActivityFailureErrorError that occurs when an activity is unsuccessful.
method
temporalio.client._exceptions.ActivityFailureError.cause() -> BaseExceptionCause of the activity failure.
class
temporalio.client._exceptions.ScheduleAlreadyRunningErrorError when a schedule is already running.
class
temporalio.client._exceptions.WorkflowFailureErrorError that occurs when a workflow is unsuccessful.
method
temporalio.client._exceptions.WorkflowFailureError.cause() -> BaseExceptionCause of the workflow failure.
class
temporalio.client._exceptions.WorkflowQueryFailedErrorError that occurs when a query fails.
method
temporalio.client._exceptions.WorkflowQueryFailedError.message() -> strGet query failed message.
class
temporalio.client._exceptions.WorkflowQueryRejectedErrorError that occurs when a query was rejected.
class
temporalio.client._exceptions.WorkflowUpdateFailedErrorError that occurs when an update fails.
method
temporalio.client._exceptions.WorkflowUpdateFailedError.cause() -> BaseExceptionCause of the update failure.
class
temporalio.client._interceptor.DeleteScheduleInputInput for :py:meth:`OutboundInterceptor.delete_schedule`.
class
temporalio.client._interceptor.InterceptorInterceptor for clients.
method
temporalio.client._interceptor.Interceptor.intercept_client(next:OutboundInterceptor) -> OutboundInterceptorMethod called for intercepting a client.
class
temporalio.client._interceptor.ListSchedulesInputInput for :py:meth:`OutboundInterceptor.list_schedules`.
class
temporalio.client._interceptor.ListWorkflowsInputInput for :py:meth:`OutboundInterceptor.list_workflows`.
class
temporalio.client._interceptor.OutboundInterceptorOutboundInterceptor for intercepting client calls.
method
temporalio.client._interceptor.OutboundInterceptor.pause_schedule(input:PauseScheduleInput) -> NoneCalled for every :py:meth:`ScheduleHandle.pause` call.
method
temporalio.client._interceptor.OutboundInterceptor.query_workflow(input:QueryWorkflowInput) -> AnyCalled for every :py:meth:`WorkflowHandle.query` call.
class
temporalio.client._interceptor.PauseScheduleInputInput for :py:meth:`OutboundInterceptor.pause_schedule`.
class
temporalio.client._nexus.NexusClientClient for starting standalone Nexus operations.
class
temporalio.client._nexus.NexusOperationExecutionCancellationInfoCancellation information for a Nexus Operation.
method
temporalio.client._nexus.NexusOperationHandle.endpoint() -> strEndpoint name.
method
temporalio.client._nexus.NexusOperationHandle.operation_id() -> strID of the operation.
method
temporalio.client._nexus.NexusOperationHandle.result(*rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> ReturnTypeWait for result of the Nexus operation.
method
temporalio.client._nexus.NexusOperationHandle.run_id() -> str | NoneRun ID of the operation.
method
temporalio.client._nexus.NexusOperationHandle.service() -> strService name.
method
temporalio.client._plugin.Plugin.name() -> strGet the name of this plugin.
class
temporalio.client._schedule.ScheduleA schedule for periodically running an action.
class
temporalio.client._schedule.ScheduleActionBase class for an action a schedule can take.
class
temporalio.client._schedule.ScheduleActionExecutionBase class for an action execution.
class
temporalio.client._schedule.ScheduleActionExecutionStartWorkflowExecution of a scheduled workflow start.
class
temporalio.client._schedule.ScheduleActionResultInformation about when an action took place.
class
temporalio.client._schedule.ScheduleActionStartWorkflowSchedule action to start a workflow.
class
temporalio.client._schedule.ScheduleDescriptionDescription of a schedule.
class
temporalio.client._schedule.ScheduleHandleHandle for interacting with a schedule.
method
temporalio.client._schedule.ScheduleHandle.delete(*rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> NoneDelete this schedule.
method
temporalio.client._schedule.ScheduleHandle.describe(*rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> ScheduleDescriptionFetch this schedule's description.
method
temporalio.client._schedule.ScheduleHandle.pause(*note:str | None=None, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> NonePause the schedule and set a note.
method
temporalio.client._schedule.ScheduleHandle.unpause(*note:str | None=None, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> NoneUnpause the schedule and set a note.
class
temporalio.client._schedule.ScheduleInfoInformation about a schedule.
class
temporalio.client._schedule.ScheduleIntervalSpecSpecification for scheduling on an interval.
class
temporalio.client._schedule.ScheduleListActionBase class for an action a listed schedule can take.
class
temporalio.client._schedule.ScheduleListActionStartWorkflowAction to start a workflow on a listed schedule.
class
temporalio.client._schedule.ScheduleListDescriptionDescription of a listed schedule.
class
temporalio.client._schedule.ScheduleListInfoInformation about a listed schedule.
class
temporalio.client._schedule.ScheduleListScheduleDetails for a listed schedule.
class
temporalio.client._schedule.ScheduleListStateState of a listed schedule.
class
temporalio.client._schedule.SchedulePolicyPolicies of a schedule.
class
temporalio.client._schedule.ScheduleRangeInclusive range for a schedule match value.
class
temporalio.client._schedule.ScheduleSpecSpecification of the times scheduled actions may occur.
class
temporalio.client._schedule.ScheduleStateState of a schedule.
class
temporalio.client._workflow.WorkflowExecutionInfo for a single workflow execution run.
method
temporalio.client._workflow.WorkflowExecution.data_converter() -> temporalio.converter.DataConverterData converter for the workflow.
class
temporalio.client._workflow.WorkflowExecutionDescriptionDescription for a single workflow execution run.
class
temporalio.client._workflow.WorkflowExecutionStatusStatus of a workflow execution.
class
temporalio.client._workflow.WorkflowHandleHandle for interacting with a workflow.
method
temporalio.client._workflow.WorkflowHandle.cancel(*reason:str='', *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> NoneCancel the workflow.
method
temporalio.client._workflow.WorkflowHandle.describe(*rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> WorkflowExecutionDescriptionGet workflow details.
method
temporalio.client._workflow.WorkflowHandle.get_update_handle(id:str, *workflow_run_id:str | None=None, *result_type:type | None=None) -> WorkflowUpdateHandle[Any]Get a handle for an update.
method
temporalio.client._workflow.WorkflowHandle.id() -> strID of the workflow.
method
temporalio.client._workflow.WorkflowHandle.result(*follow_runs:bool=True, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None) -> ReturnTypeWait for result of the workflow.
method
temporalio.client._workflow.WorkflowHandle.terminate(*reason:str | None=None, *rpc_metadata:Mapping[str, str | bytes]={}, *rpc_timeout:timedelta | None=None, *args:Any) -> NoneTerminate the workflow.
class
temporalio.client._workflow.WorkflowHistoryA workflow's ID and immutable history.
method
temporalio.client._workflow.WorkflowHistory.run_id() -> strRun ID extracted from the first event.
method
temporalio.client._workflow.WorkflowHistory.to_json() -> strConvert this history to JSON.
method
temporalio.client._workflow.WorkflowHistory.to_json_dict() -> dict[str, Any]Convert this history to JSON-compatible dict.
class
temporalio.client._workflow.WorkflowHistoryEventFilterTypeType of history events to get for a workflow.
class
temporalio.client._workflow.WorkflowUpdateHandleHandle for a workflow update execution request.
method
temporalio.client._workflow.WorkflowUpdateHandle.id() -> strID of this Update request.
method
temporalio.client._workflow.WorkflowUpdateHandle.workflow_id() -> strThe ID of the Workflow targeted by this Update.
class
temporalio.common.ActivityIDConflictPolicyHow already-running activity IDs are handled on start.
class
temporalio.common.ActivityIDReusePolicyHow already-closed activity IDs are handled on start.
class
temporalio.common.HeaderCodecBehaviorDifferent ways to handle header encoding
class
temporalio.common.MetricCommonBase for all metrics.
method
temporalio.common.MetricCommon.description() -> str | NoneDescription for the metric if any.
method
temporalio.common.MetricCommon.name() -> strName for the metric.
method
temporalio.common.MetricCommon.unit() -> str | NoneUnit for the metric if any.
class
temporalio.common.MetricCounterCounter metric created by a metric meter.
method
temporalio.common.MetricCounter.add(value:int, additional_attributes:MetricAttributes | None=None) -> NoneAdd a value to the counter.
class
temporalio.common.MetricGaugeGauge metric created by a metric meter.
method
temporalio.common.MetricGauge.set(value:int, additional_attributes:MetricAttributes | None=None) -> NoneSet a value on the gauge.
class
temporalio.common.MetricGaugeFloatGauge metric created by a metric meter.
method
temporalio.common.MetricGaugeFloat.set(value:float, additional_attributes:MetricAttributes | None=None) -> NoneSet a value on the gauge.
class
temporalio.common.MetricHistogramHistogram metric created by a metric meter.
method
temporalio.common.MetricHistogram.record(value:int, additional_attributes:MetricAttributes | None=None) -> NoneRecord a value on the histogram.
class
temporalio.common.MetricHistogramFloatHistogram metric created by a metric meter.
method
temporalio.common.MetricHistogramFloat.record(value:float, additional_attributes:MetricAttributes | None=None) -> NoneRecord a value on the histogram.
class
temporalio.common.MetricHistogramTimedeltaHistogram metric created by a metric meter.
method
temporalio.common.MetricHistogramTimedelta.record(value:timedelta, additional_attributes:MetricAttributes | None=None) -> NoneRecord a value on the histogram.
class
temporalio.common.MetricMeterMetric meter for recording metrics.
method
temporalio.common.MetricMeter.create_counter(name:str, description:str | None=None, unit:str | None=None) -> MetricCounterCreate a counter metric for adding values.
method
temporalio.common.MetricMeter.create_gauge(name:str, description:str | None=None, unit:str | None=None) -> MetricGaugeCreate a gauge metric for setting values.
method
temporalio.common.MetricMeter.create_gauge_float(name:str, description:str | None=None, unit:str | None=None) -> MetricGaugeFloatCreate a gauge metric for setting values.
method
temporalio.common.MetricMeter.create_histogram(name:str, description:str | None=None, unit:str | None=None) -> MetricHistogramCreate a histogram metric for recording values.
class
temporalio.common.NexusOperationCancellationStateState of a Nexus operation cancellation.
class
temporalio.common.NexusOperationExecutionStatusStatus of a standalone Nexus operation execution.
class
temporalio.common.QueryRejectConditionWhether a query should be rejected in certain conditions.
class
temporalio.common.RawValueRepresentation of an unconverted, raw payload.
class
temporalio.common.RetryPolicyOptions for retrying workflows and activities.
method
temporalio.common.RetryPolicy.apply_to_proto(proto:temporalio.api.common.v1.RetryPolicy) -> NoneApply the fields in this policy to the given proto object.
method
temporalio.common.RetryPolicy.from_proto(proto:temporalio.api.common.v1.RetryPolicy) -> RetryPolicyCreate a retry policy from the proto object.
class
temporalio.common.SearchAttributeIndexedValueTypeServer index type of a search attribute.
class
temporalio.common.SearchAttributeKeyTyped search attribute key representation.
method
temporalio.common.SearchAttributeKey.for_bool(name:str) -> SearchAttributeKey[bool]Create a 'Bool' search attribute type.
method
temporalio.common.SearchAttributeKey.for_datetime(name:str) -> SearchAttributeKey[datetime]Create a 'Datetime' search attribute type.
method
temporalio.common.SearchAttributeKey.for_float(name:str) -> SearchAttributeKey[float]Create a 'Double' search attribute type.
method
temporalio.common.SearchAttributeKey.for_int(name:str) -> SearchAttributeKey[int]Create an 'Int' search attribute type.
method
temporalio.common.SearchAttributeKey.for_keyword(name:str) -> SearchAttributeKey[str]Create a 'Keyword' search attribute type.
method
temporalio.common.SearchAttributeKey.for_keyword_list(name:str) -> SearchAttributeKey[Sequence[str]]Create a 'KeywordList' search attribute type.
method
temporalio.common.SearchAttributeKey.for_text(name:str) -> SearchAttributeKey[str]Create a 'Text' search attribute type.
method
temporalio.common.SearchAttributeKey.indexed_value_type() -> SearchAttributeIndexedValueTypeGet the server index typed of the key
method
temporalio.common.SearchAttributeKey.name() -> strGet the name of the key.
method
temporalio.common.SearchAttributeKey.value_type() -> type[SearchAttributeValueType]Get the Python type of value for the key.
class
temporalio.common.SearchAttributeUpdateRepresentation of a search attribute update.
method
temporalio.common.SearchAttributeUpdate.key() -> SearchAttributeKey[SearchAttributeValueType]Key that is being set.
class
temporalio.common.TypedSearchAttributesCollection of typed search attributes.
class
temporalio.common.WorkerDeploymentVersionRepresents the version of a specific worker deployment.
class
temporalio.common.WorkflowIDReusePolicyHow already-in-use workflow IDs are handled on start.
func
temporalio.contrib.aws.lambda_worker._defaults.apply_lambda_worker_defaults(config:WorkerConfig) -> NoneApply Lambda-appropriate defaults to worker config.
func
temporalio.contrib.aws.lambda_worker._run_worker.run_worker(version:WorkerDeploymentVersion, configure:ConfigureCallback) -> Callable[[Any, Any], None]Create a Temporal worker Lambda handler.
class
temporalio.contrib.aws.lambda_worker.otel.OtelOptionsOptions for :py:func:`apply_defaults`.
class
temporalio.contrib.aws.s3driver._client.S3StorageDriverClientAbstract base class for S3 object operations.
method
temporalio.contrib.aws.s3driver._client.S3StorageDriverClient.put_object(*bucket:str, *key:str, *data:bytes) -> NoneUpload *data* to the given S3 *bucket* and *key*.
class
temporalio.contrib.google_adk_agents._mcp.TemporalMcpToolSetTemporal-aware MCP toolset implementation.
class
temporalio.contrib.google_adk_agents._model.StreamingInvokeInputInput for :func:`invoke_model_streaming`.
func
temporalio.contrib.google_adk_agents._model.invoke_model(llm_request:LlmRequest) -> list[LlmResponse]Activity that invokes an LLM model.
func
temporalio.contrib.google_adk_agents._model.invoke_model_streaming(input:StreamingInvokeInput) -> list[LlmResponse]Streaming-aware model activity.
class
temporalio.contrib.google_adk_agents._plugin.GoogleAdkPluginA Temporal Worker Plugin configured for ADK.
func
temporalio.contrib.langgraph._activity.clear_store_warning(run_id:str) -> NoneDrop the store-warning dedupe entry for a workflow run.
func
temporalio.contrib.langgraph._langgraph_config.strip_runnable_config(config:RunnableConfig | None) -> RunnableConfigReturn a serializable subset of a RunnableConfig.
class
temporalio.contrib.langgraph._plugin.LangGraphPluginLangGraph plugin for Temporal SDK.
func
temporalio.contrib.langgraph._plugin.entrypoint(name:str, cache:dict[str, Any] | None=None) -> Pregel[Any, Any, Any, Any]Retrieve a registered entrypoint by name.
func
temporalio.contrib.langgraph._plugin.graph(name:str, cache:dict[str, Any] | None=None) -> StateGraph[Any, Any, Any, Any]Retrieve a registered graph by name.
func
temporalio.contrib.langgraph._task_cache.cache_lookup(key:str) -> tuple[bool, Any]Return (True, value) if cached, (False, None) otherwise.
func
temporalio.contrib.langgraph._task_cache.cache_put(key:str, value:Any) -> NoneStore a value in the task result cache.
func
temporalio.contrib.langgraph._task_cache.set_task_cache(cache:dict[str, Any] | None) -> NoneSet the task result cache for the current context.
func
temporalio.contrib.langgraph._task_cache.task_id(func:Any) -> strReturn the fully-qualified module.qualname for a function.
class
temporalio.contrib.langsmith._plugin.LangSmithPluginLangSmith tracing plugin for Temporal SDK.
class
temporalio.contrib.openai_agents._invoke_model_activity.ActivityModelInputInput for the invoke_model_activity activity.
func
temporalio.contrib.openai_agents._mcp.StatefulMCPServerProvider.heartbeat_every(delay:float, *details:Any) -> NoneHeartbeat every so often while not cancelled
class
temporalio.contrib.openai_agents._openai_runner.TemporalOpenAIRunnerTemporal Runner for OpenAI agents.
class
temporalio.contrib.openai_agents._temporal_openai_agents.OpenAIPayloadConverterPayloadConverter for OpenAI agents.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.CreateSessionArgsArguments for create session activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.ExecArgsArguments for exec activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.ExecResultResult of an exec activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.PersistWorkspaceResultResult of a persist workspace activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.PtyExecStartArgsArguments for PTY exec start activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.PtyExecUpdateResultResult of a PTY exec activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.PtyWriteStdinArgsArguments for PTY write stdin activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.ReadArgsArguments for read activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.ReadResultResult of a read activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.ResumeSessionArgsArguments for resume session activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.RunningArgsArguments for running check activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.RunningResultResult of a running check activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.StartArgsArguments for start activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.StopArgsArguments for stop activity.
class
temporalio.contrib.openai_agents.sandbox._temporal_activity_models.WriteArgsArguments for write activity.
class
temporalio.contrib.openai_agents.testing.ResponseBuildersBuilders for creating model responses for testing.
method
temporalio.contrib.openai_agents.testing.ResponseBuilders.model_response(output:TResponseOutputItem) -> ModelResponseCreate a ModelResponse with the given output.
method
temporalio.contrib.openai_agents.testing.ResponseBuilders.output_message(text:str) -> ModelResponseCreate a ModelResponse with an output message.
method
temporalio.contrib.openai_agents.testing.ResponseBuilders.response_output_message(text:str) -> ResponseOutputMessageCreate a ResponseOutputMessage with text content.
method
temporalio.contrib.openai_agents.testing.ResponseBuilders.tool_call(arguments:str, name:str) -> ModelResponseCreate a ModelResponse with a function tool call.
class
temporalio.contrib.openai_agents.testing.TestModelTest model for use mocking model responses.
class
temporalio.contrib.opentelemetry._interceptor.TracingWorkflowInboundInterceptorTracing interceptor for workflow calls.
class
temporalio.contrib.opentelemetry._plugin.OpenTelemetryPluginOpenTelemetry plugin for Temporal SDK.
func
temporalio.contrib.opentelemetry.workflow.completed_span(name:str, *attributes:opentelemetry.util.types.Attributes=None, *exception:Exception | None=None) -> NoneCreate and end an OpenTelemetry span.
class
temporalio.contrib.pydantic.PydanticJSONPlainPayloadConverterPydantic JSON payload converter.
method
temporalio.contrib.pydantic.PydanticJSONPlainPayloadConverter.encoding() -> strSee base class.
method
temporalio.contrib.pydantic.PydanticJSONPlainPayloadConverter.from_payload(payload:temporalio.api.common.v1.Payload, type_hint:type | None=None) -> AnySee base class.
method
temporalio.contrib.pydantic.PydanticJSONPlainPayloadConverter.to_payload(value:Any) -> temporalio.api.common.v1.Payload | NoneSee base class.
class
temporalio.contrib.pydantic.ToJsonOptionsOptions for converting to JSON with pydantic.
class
temporalio.contrib.strands._plugin.StrandsPluginTemporal Worker plugin for the Strands Agents SDK.
class
temporalio.contrib.workflow_streams._types.PollInputUpdate payload: request to poll for new items.
class
temporalio.contrib.workflow_streams._types.PollResultUpdate response: items matching the poll request.
class
temporalio.contrib.workflow_streams._types.PublishEntryA single entry to publish via signal (wire type).
class
temporalio.contrib.workflow_streams._types.PublishInputSignal payload: batch of entries to publish.
class
temporalio.contrib.workflow_streams._types.PublisherStatePer-publisher dedup state.
class
temporalio.contrib.workflow_streams._types.WorkflowStreamItemA single item in the workflow stream's log.
func
temporalio.converter._data_converter.default() -> DataConverterDefault data converter.
class
temporalio.converter._extstore.ExternalStorageConfiguration for external storage behavior.
class
temporalio.converter._extstore.StorageWarningWarning for external storage issues.
class
temporalio.converter._failure_converter.DefaultFailureConverterDefault failure converter.
method
temporalio.converter._failure_converter.DefaultFailureConverter.from_failure(failure:temporalio.api.failure.v1.Failure, payload_converter:PayloadConverter) -> BaseExceptionSee base class.
method
temporalio.converter._failure_converter.DefaultFailureConverter.to_failure(exception:BaseException, payload_converter:PayloadConverter, failure:temporalio.api.failure.v1.Failure) -> NoneSee base class.
class
temporalio.converter._failure_converter.FailureConverterBase failure converter to/from errors.
class
temporalio.converter._payload_codec.PayloadCodecCodec for encoding/decoding to/from bytes.
method
temporalio.converter._payload_codec.PayloadCodec.decode(payloads:Sequence[temporalio.api.common.v1.Payload]) -> list[temporalio.api.common.v1.Payload]Decode the given payloads.
method
temporalio.converter._payload_codec.PayloadCodec.decode_failure(failure:temporalio.api.failure.v1.Failure) -> NoneDecode payloads of a failure.
method
temporalio.converter._payload_codec.PayloadCodec.encode(payloads:Sequence[temporalio.api.common.v1.Payload]) -> list[temporalio.api.common.v1.Payload]Encode the given payloads.
method
temporalio.converter._payload_codec.PayloadCodec.encode_failure(failure:temporalio.api.failure.v1.Failure) -> NoneEncode payloads of a failure.
class
temporalio.converter._payload_converter.AdvancedJSONEncoderAdvanced JSON encoder.
method
temporalio.converter._payload_converter.AdvancedJSONEncoder.default(o:Any) -> AnyOverride JSON encoding default.
func
temporalio.converter._payload_converter.value_to_type(hint:type, value:Any, custom_converters:Sequence[JSONTypeConverter]=[]) -> AnyConvert a given value to the given type hint.
func
temporalio.converter._search_attributes.decode_search_attributes(api:temporalio.api.common.v1.SearchAttributes) -> temporalio.common.SearchAttributesDecode API search attributes to values.
class
temporalio.converter._serialization_context.ActivitySerializationContextSerialization context for activities.
class
temporalio.converter._serialization_context.SerializationContextBase serialization context.
class
temporalio.converter._serialization_context.WorkflowSerializationContextSerialization context for workflows.
method
temporalio.envconfig.ClientConfig.from_dict(d:Mapping[str, Mapping[str, Any]]) -> SelfCreate a ClientConfig from a dictionary.
class
temporalio.envconfig.ClientConfigProfileRepresents a client configuration profile.
method
temporalio.envconfig.ClientConfigProfile.from_dict(d:ClientConfigProfileDict) -> SelfCreate a ClientConfigProfile from a dictionary.
class
temporalio.envconfig.ClientConfigTLSDictDictionary representation of TLS config for TOML.
class
temporalio.exceptions.ActivityErrorError raised on activity failure.
method
temporalio.exceptions.ActivityError.activity_id() -> strActivity ID for this error.
method
temporalio.exceptions.ActivityError.activity_type() -> strActivity type for this error.
method
temporalio.exceptions.ActivityError.identity() -> strIdentity for this error.
method
temporalio.exceptions.ActivityError.retry_state() -> RetryState | NoneRetry state for this error.
method
temporalio.exceptions.ActivityError.scheduled_event_id() -> intScheduled event ID for this error.
method
temporalio.exceptions.ActivityError.started_event_id() -> intStarted event ID for this error.
class
temporalio.exceptions.ApplicationErrorError raised during workflow/activity execution.
method
temporalio.exceptions.ApplicationError.category() -> ApplicationErrorCategorySeverity category of the application error
method
temporalio.exceptions.ApplicationError.details() -> Sequence[Any]User-defined details on the error.
method
temporalio.exceptions.ApplicationError.next_retry_delay() -> timedelta | NoneDelay before the next activity retry attempt.
method
temporalio.exceptions.ApplicationError.type() -> str | NoneGeneral error type.
class
temporalio.exceptions.ApplicationErrorCategorySeverity category for your application error.
class
temporalio.exceptions.CancelledErrorError raised on workflow/activity cancellation.
method
temporalio.exceptions.CancelledError.details() -> Sequence[Any]User-defined details on the error.
class
temporalio.exceptions.ChildWorkflowErrorError raised on child workflow failure.
method
temporalio.exceptions.ChildWorkflowError.initiated_event_id() -> intInitiated event ID for this error.
method
temporalio.exceptions.ChildWorkflowError.namespace() -> strNamespace for this error.
method
temporalio.exceptions.ChildWorkflowError.retry_state() -> RetryState | NoneRetry state for this error.
method
temporalio.exceptions.ChildWorkflowError.run_id() -> strRun ID for this error.
method
temporalio.exceptions.ChildWorkflowError.started_event_id() -> intStarted event ID for this error.
method
temporalio.exceptions.ChildWorkflowError.workflow_id() -> strWorkflow ID for this error.
method
temporalio.exceptions.ChildWorkflowError.workflow_type() -> strWorkflow type for this error.
class
temporalio.exceptions.FailureErrorBase for runtime failures during workflow/activity execution.
method
temporalio.exceptions.FailureError.failure() -> temporalio.api.failure.v1.Failure | NoneUnderlying protobuf failure object.
method
temporalio.exceptions.FailureError.message() -> strMessage.
method
temporalio.exceptions.NexusOperationError.endpoint() -> strThe endpoint name for the failed operation.
method
temporalio.exceptions.NexusOperationError.operation() -> strThe name of the failed operation.
method
temporalio.exceptions.NexusOperationError.service() -> strThe service name for the failed operation.
class
temporalio.exceptions.RetryStateCurrent retry state of the workflow/activity during error.
class
temporalio.exceptions.ServerErrorError originating in the Temporal server.
method
temporalio.exceptions.ServerError.non_retryable() -> boolWhether this error is non-retryable.
class
temporalio.exceptions.TemporalErrorBase for all Temporal exceptions.
method
temporalio.exceptions.TemporalError.cause() -> BaseException | NoneCause of the exception.
class
temporalio.exceptions.TerminatedErrorError raised on workflow cancellation.
method
temporalio.exceptions.TerminatedError.details() -> Sequence[Any]User-defined details on the error.
class
temporalio.exceptions.TimeoutErrorError raised on workflow/activity timeout.
method
temporalio.exceptions.TimeoutError.type() -> TimeoutType | NoneType of timeout error.
class
temporalio.exceptions.TimeoutTypeType of timeout for :py:class:`TimeoutError`.
func
temporalio.nexus._link_conversion.activity_link_to_nexus_link(activity:temporalio.api.common.v1.Link.Activity) -> nexusrpc.LinkConvert an Activity link into a nexusrpc link.
func
temporalio.nexus._link_conversion.workflow_to_nexus_link(workflow:temporalio.api.common.v1.Link.Workflow) -> nexusrpc.LinkConvert a Workflow link into a nexusrpc link.
class
temporalio.nexus._operation_context.InfoInformation about the running Nexus operation.
class
temporalio.nexus._operation_context.WorkflowRunOperationContextContext received by a workflow run operation.
method
temporalio.nexus._operation_context.WorkflowRunOperationContext.metric_meter() -> temporalio.common.MetricMeterThe metric meter
func
temporalio.nexus._operation_context.in_operation() -> boolWhether the current code is inside a Nexus operation.
func
temporalio.nexus._operation_context.info() -> InfoGet the current Nexus operation information.
func
temporalio.nexus._operation_context.is_worker_shutdown() -> boolWhether shutdown has been invoked on the worker.
class
temporalio.nexus._temporal_client.TemporalNexusClientNexus-aware wrapper around a Temporal Client.
method
temporalio.nexus._temporal_client.TemporalNexusClient.client() -> temporalio.client.ClientThe underlying Temporal Client ..
class
temporalio.nexus._temporal_client.TemporalOperationResultUnified result: sync value or async token.
class
temporalio.nexus._token.OperationTokenSerializable token identifying a Nexus operation target.
method
temporalio.nexus._token.OperationToken.encode() -> strConvert handle to a base64url-encoded token string.
class
temporalio.nexus._token.OperationTokenTypeType discriminator for Nexus operation tokens.
class
temporalio.nexus._token.WorkflowHandleA handle to a workflow that is backing a Nexus operation.
method
temporalio.nexus._token.WorkflowHandle.to_token() -> strConvert handle to a base64url-encoded token string.
func
temporalio.nexus._util.get_callable_name(fn:Callable[..., Any]) -> strReturn the name of a callable object.
func
temporalio.nexus._util.is_async_callable(obj:Any) -> boolReturn True if ``obj`` is an async callable.
func
temporalio.nexus.system.is_system_endpoint(endpoint:str) -> boolReturn whether a Nexus endpoint is the Temporal system endpoint.
class
temporalio.nexus.system.workflow_service.models.SignalWithStartWorkflowRequest..
class
temporalio.nexus.system.workflow_service.service.WorkflowService..
class
temporalio.runtime.BufferedMetricA metric for a buffered update.
method
temporalio.runtime.BufferedMetric.description() -> str | NoneGet the description of the metric if any.
method
temporalio.runtime.BufferedMetric.kind() -> BufferedMetricKindGet the metric kind.
method
temporalio.runtime.BufferedMetric.name() -> strGet the name of the metric.
method
temporalio.runtime.BufferedMetric.unit() -> str | NoneGet the unit of the metric if any.
class
temporalio.runtime.BufferedMetricUpdateA single metric value update.
method
temporalio.runtime.BufferedMetricUpdate.attributes() -> temporalio.common.MetricAttributesAttributes for the update.
method
temporalio.runtime.BufferedMetricUpdate.metric() -> BufferedMetricMetric being updated.
method
temporalio.runtime.BufferedMetricUpdate.value() -> int | floatValue for the update.
class
temporalio.runtime.LogForwardingConfigConfiguration for log forwarding from Core.
class
temporalio.runtime.LoggingConfigConfiguration for runtime logging.
class
temporalio.runtime.MetricBufferDurationFormatHow durations are represented for metrics buffers.
class
temporalio.runtime.OpenTelemetryConfigConfiguration for OpenTelemetry collector.
class
temporalio.runtime.OpenTelemetryMetricTemporalityTemporality for OpenTelemetry metrics.
class
temporalio.runtime.PrometheusConfigConfiguration for Prometheus metrics endpoint.
class
temporalio.runtime.RuntimeRuntime for Temporal Python SDK.
method
temporalio.runtime.Runtime.default() -> RuntimeGet the default runtime, creating if not already created.
method
temporalio.runtime.Runtime.metric_meter() -> temporalio.common.MetricMeterMetric meter for this runtime.
method
temporalio.runtime.Runtime.set_default(runtime:Runtime, *error_if_already_set:bool=True) -> NoneSet the default runtime to the given runtime.
class
temporalio.runtime.TelemetryConfigConfiguration for Core telemetry.
class
temporalio.runtime.TelemetryFilterFilter for telemetry use.
method
temporalio.runtime.TelemetryFilter.formatted() -> strReturn a formatted form of this filter.
class
temporalio.service.CloudServiceClient to the Temporal server's cloud service.
class
temporalio.service.ConnectConfigConfig for connecting to the server.
class
temporalio.service.DnsLoadBalancingConfigDNS load balancing configuration for client connections.
class
temporalio.service.GrpcCompressionTransport-level gRPC compression mode.
class
temporalio.service.HealthServiceClient to the Temporal server's health service.
class
temporalio.service.KeepAliveConfigKeep-alive configuration for client connections.
この情報について
掲載しているシグネチャは temporalio/sdk-python の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。