AFL.automation.shared.tiled#

Shared helpers for resolving and connecting to an AFL Tiled service.

Functions

get_afl_home([afl_home])

Return the AFL configuration directory, honoring AFL_HOME.

get_tiled_client([afl_home, structure_clients])

Create a Tiled client using the configured AFL Tiled credentials.

resolve_tiled_config([afl_home])

Resolve the newest Tiled server and API key from AFL global config.

Classes

Path(*args, **kwargs)

PurePath subclass that can make system calls.

Exceptions

TiledConfigurationError

Raised when an AFL global configuration lacks a usable Tiled server.

exception AFL.automation.shared.tiled.TiledConfigurationError[source]#

Raised when an AFL global configuration lacks a usable Tiled server.

AFL.automation.shared.tiled.get_afl_home(afl_home=None) Path[source]#

Return the AFL configuration directory, honoring AFL_HOME.

AFL.automation.shared.tiled.resolve_tiled_config(afl_home=None) tuple[str, str][source]#

Resolve the newest Tiled server and API key from AFL global config.

AFL’s PersistentConfig stores a history keyed by timestamps in YY/DD/MM HH:MM:SS.ffffff format. The newest entry that defines a non-empty tiled_server is selected. An empty API key is valid for anonymously accessible Tiled deployments.

AFL.automation.shared.tiled.get_tiled_client(afl_home=None, *, structure_clients='dask')[source]#

Create a Tiled client using the configured AFL Tiled credentials.