GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • API Documentation
  • Modules
  • Classes
  • Names
  • help page
  • ClientConfigProfile
  • envconfig
  • ClientConfig
  • ClientConfigExtension
  • ClientConfigExtensionRequest
  • ClientConfigProfileDict
  • ClientConfigTLS
  • ClientConfigTLSDict
  • ClientConnectConfig

This view

  • Original page
  • New address

GeezerVison is showing python.temporal.io — temporalio.envconfig.ClientConfigProfile

temporalio.envconfig.ClientConfigProfile

class documentation

class ClientConfigProfile: (source)

Constructors: ClientConfigProfile.from_dict(d), ClientConfigProfile.load(profile, config_source, disable_file, disable_env, config_file_strict, ...)

View In Hierarchy

Represents a client configuration profile.

This class holds the configuration as loaded from a file or environment. See to_client_connect_config to transform the profile to ClientConnectConfig, which can be used to create a client.

Class Method from_dict Create a ClientConfigProfile from a dictionary.
Static Method load Load a single client profile from given sources, applying env overrides.
Method to_client_connect_config Create a ClientConnectConfig from this profile.
Method to_dict Convert to a dictionary that can be used for TOML serialization.
Class Variable address Client address.
Class Variable api_key Client API key.
Class Variable ext Raw extension config from profile.<profile>.ext, keyed by extension name. Each extension decodes its own table, which should be treated as read-only. Values are converted as by tomllib, so TOML datetimes are ...
Class Variable grpc_meta gRPC metadata.
Class Variable namespace Client namespace.
Class Variable tls TLS configuration.
@classmethod
def from_dict(cls, d: ClientConfigProfileDict) -> Self: (source) ¶

Create a ClientConfigProfile from a dictionary.

@staticmethod
def load(profile: str | None = None, *, config_source: DataSource | None = None, disable_file: bool = False, disable_env: bool = False, config_file_strict: bool = False, override_env_vars: Mapping[str, str] | None = None) -> ClientConfigProfile: (source) ¶

Load a single client profile from given sources, applying env overrides.

To get a ClientConnectConfig, use the to_client_connect_config method on the returned profile.

Parameters
profile:str | NoneProfile to load from the config.
config_source:DataSource | NoneIf present, this is used as the configuration source instead of default file locations. This can be a path to the file or the string/byte contents of the file.
disable_file:boolIf true, file loading is disabled. This is only used when config_source is not present.
disable_env:boolIf true, environment variable loading and overriding is disabled. This takes precedence over the override_env_vars parameter.
config_file_strict:boolIf true, will error on unrecognized keys.
override_env_vars:Mapping[str, str] | NoneThe environment to use for loading and overrides. If not provided, the current process's environment is used. To use a specific set of environment variables, provide them here. To disable environment variable loading, set disable_env to true.
Returns
ClientConfigProfileThe client configuration profile.
def to_client_connect_config(self) -> ClientConnectConfig: (source) ¶

Create a ClientConnectConfig from this profile.

def to_dict(self) -> ClientConfigProfileDict: (source) ¶

Convert to a dictionary that can be used for TOML serialization.

address: str | None = (source) ¶

Client address.

api_key: str | None = (source) ¶

Client API key.

ext: Mapping[str, Mapping[str, Any]] = (source) ¶

Raw extension config from profile.<profile>.ext, keyed by extension name. Each extension decodes its own table, which should be treated as read-only. Values are converted as by tomllib, so TOML datetimes are datetime.datetime, datetime.date, or datetime.time objects. Not modified by environment variables.

Warning

This API is experimental and unstable.

grpc_meta: Mapping[str, str] = (source) ¶

gRPC metadata.

namespace: str | None = (source) ¶

Client namespace.

tls: ClientConfigTLS | None = (source) ¶

TLS configuration.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.