AFL.automation.shared.TiledProxyDriver#
An AFL API server backed by an existing Tiled HTTP service.
Functions
|
Create an APIServer with AFL routes and native Tiled REST forwarding. |
|
Read connection settings from a private Tiled client or NAS YAML. |
|
Launch the proxy from a private Tiled connection profile. |
|
Parse a query given as a string argument. |
|
Keep Tiled pagination and data links on the local proxy origin. |
|
Encode a dict or sequence of two-element tuples into a URL query string. |
|
Join a base URL and a possibly relative URL to form an absolute interpretation of the latter. |
|
Parse a URL into 5 components: <scheme>://<netloc>/<path>?<query>#<fragment> |
|
Combine the elements of a tuple as returned by urlsplit() into a complete URL as a string. |
Classes
|
|
|
PurePath subclass that can make system calls. |
|
Forward Tiled HTTP requests and provide the standard AFL browser. |
- AFL.automation.shared.TiledProxyDriver.load_profile(filename)[source]#
Read connection settings from a private Tiled client or NAS YAML.
- class AFL.automation.shared.TiledProxyDriver.TiledProxyDriver(uri=None, api_key='', structure_clients=None, overrides=None, *, http_client=None, afl_home=None)[source]#
Forward Tiled HTTP requests and provide the standard AFL browser.
- Parameters:
uri (str, optional) – Backend URL. When omitted, use the persistent driver configuration or the value supplied in overrides.
api_key (str, optional) – Backend API key, kept outside the persistent driver configuration.
structure_clients (str, optional) – Tiled structure client selection for the inherited AFL browser.
overrides (dict, optional) – Configuration values that override the driver defaults.
http_client (httpx.Client, optional) – HTTP client supplied by the caller, for example with a mock transport.
afl_home (str or pathlib.Path, optional) – Directory containing the driver’s persistent configuration.
- defaults = {'structure_clients': 'dask', 'timeout': 10.0, 'uri': ''}#
- AFL.automation.shared.TiledProxyDriver.rewrite_links(value, upstream, local)[source]#
Keep Tiled pagination and data links on the local proxy origin.