tiled.client.from_config

tiled.client.from_config(config, *, username=None, cache=None, offline=False, token_cache='/home/runner/.config/tiled/tokens', prompt_for_reauthentication=PromptForReauthentication.AT_INIT, **kwargs)[source]

Build Nodes directly, running the app in this same process.

NOTE: This is experimental. It may need to be re-designed or even removed.

Parameters
configstr or dict

May be:

  • Path to config file

  • Path to directory of config files

  • Dict of config

Examples

From config file:

>>> from_config("path/to/file.yml")

From directory of config files:

>>> from_config("path/to/directory")

From configuration given directly, as dict:

>>> from_config(
        {
            "trees":
                [
                    "path": "/",
                    "tree": "tiled.files.Node.from_files",
                    "args": {"diretory": "path/to/files"}
                ]
        }
    )