tiled.client.from_uri

tiled.client.from_uri(uri, structure_clients='numpy', *, cache=None, offline=False, username=None, auth_provider=None, api_key=None, token_cache='/home/runner/.config/tiled/tokens', verify=True, prompt_for_reauthentication=PromptForReauthentication.AT_INIT, headers=None)[source]

Connect to a Node on a local or remote server.

Parameters
uristr

e.g. “http://localhost:8000/api

structure_clientsstr or dict, optional

Use “dask” for delayed data loading and “numpy” for immediate in-memory structures (e.g. normal numpy arrays, pandas DataFrames). For advanced use, provide dict mapping a structure_family or a spec to a client object.

cacheCache, optional
offlinebool, optional

False by default. If True, rely on cache only.

usernamestr, optional

Username for authenticated access.

auth_providerstr, optional

Name of an authentication provider. If None and the server supports multiple provides, the user will be interactively prompted to choose from a list.

api_keystr, optional

API key based authentication. Cannot mix with username/auth_provider.

token_cachestr, optional

Path to directory for storing refresh tokens.

verifybool, optional

Verify SSL certifications. True by default. False is insecure, intended for development and testing only.

prompt_for_reauthentication{“at_init”, “always”, “never”}
headersdict, optional

Extra HTTP headers.