pyrolab.configure

pyrolab.configure#

Configuration Settings#

Default configuration settings for PyroLab and methods for persisting configurations between settings or using YAML files.

Server Configuration#

Note the difference between the two servertypes:

  1. Threaded server

    Every proxy on a client that connects to the daemon will be assigned to a thread to handle the remote method calls. This way multiple calls can potentially be processed concurrently. This means your Pyro object may have to be made thread-safe!

  2. Multiplexed server

    This server uses a connection multiplexer to process all remote method calls sequentially. No threads are used in this server. It means only one method call is running at a time, so if it takes a while to complete, all other calls are waiting for their turn (even when they are from different proxies).

Functions

export_config(config, filename)

Exports the current configuration to a file.

reset_config()

Resets the configuration to the default.

uniquify_class(cls)

Returns a new class with a unique name that inherits from the original.

update_config(filename)

Updates the internal configuration file with a user configuration file.

Classes

AutolaunchSettings([_env_file, ...])

DaemonConfiguration([_env_file, ...])

Server configuration object.

GlobalConfiguration()

A Singleton global configuration object that can read and write configuration files.

NameServerConfiguration([_env_file, ...])

The NameServer Settings class.

PyroConfigMixin()

Mixin for pydantic models, updates fields that are Pyro5 configuration options.

PyroLabConfiguration([_env_file, ...])

Global configuration options for PyroLab.

ServiceConfiguration([_env_file, ...])

Groups together information about a PyroLab service.

UniqueOrAutoKeyLoader(stream)

A loader specific for PyroLab configuration files.

YAMLMixin()