find_feature#
- dscat.queries.find_feature(cat, key, dataset, version, all_versions, table_name)[source]#
Look up features by name,
table.name, or qualified id.- Parameters:
cat (
dscat.index.Catalogue) – Open catalogue to read from.key (
str) – A bare variable name, atable.name, or a qualified id.version (
strorNone) – Pin a version (needsdataset); the default scope is the latest.all_versions (
bool) – Search every version instead of only the latest.
- Returns:
Every feature row matching
keyin scope; more than one row means the key is ambiguous.- Return type: