Skip to content

Catalog

Where the session's catalog is served.

Imports nothing from tiled, so any component can ask, extra or not.

CATALOG module-attribute

CATALOG: Dependency[CatalogAddress] = dip.Dependency(
    instance_of=CatalogAddress
)

Key for the session's catalog address, bound when storage has a catalog.

CatalogAddress dataclass

Where a session's catalog is served.

from tiled.client import from_uri

client = from_uri(address.uri)

Attributes:

Name Type Description
uri str

URI of the server, with its API key. Left out of the repr.

Source code in src/redsun/catalog.py
@dataclass(frozen=True)
class CatalogAddress:
    """Where a session's catalog is served.

    ```python
    from tiled.client import from_uri

    client = from_uri(address.uri)
    ```

    Attributes
    ----------
    uri : str
        URI of the server, with its API key. Left out of the ``repr``.
    """

    uri: str = field(repr=False)