Catalog¶
Related to the Data Catalog API
-
class
koordinates.catalog.
CatalogEntry
(**kwargs)¶ Bases:
koordinates.base.Model
-
refresh
()¶ Refresh this model from the server.
Updates attributes with the server-defined values. This is useful where the Model instance came from a partial response (eg. a list query) and additional details are required.
Existing attribute values will be overwritten.
-
-
class
koordinates.catalog.
CatalogManager
(client)¶ Bases:
koordinates.base.Manager
Accessor for querying across the site via the Catalog API.
Access via the
catalog
property of akoordinates.client.Client
instance.-
expand
(*args, **kwargs)¶ Returns an expanded Query view of the model objects. Equivalent to calling
.list().expand()
. Using expansions may have significant performance implications for some API requests. Seekoordinates.base.Query.expand()
.
-
filter
(*args, **kwargs)¶ Returns a filtered Query view of the model objects. Equivalent to calling
.list().filter(...)
. Seekoordinates.base.Query.filter()
.
-
list
()¶ The published version of each layer, table, set, document or source. If something hasn’t been published yet, it won’t appear here.
-
list_latest
()¶ A filterable list view of layers, tables, sets, documents and sources, similar to
koordinates.catalog.CatalogManager.list()
. This returns the latest version of each item, regardless of whether or not it has been published.
-
order_by
(*args, **kwargs)¶ Returns an ordered Query view of the model objects. Equivalent to calling
.list().order_by(...)
. Seekoordinates.base.Query.order_by()
.
-