MCPcopy Create free account
hub / github.com/PyTables/PyTables / fetch_logged_instances

Function fetch_logged_instances

tables/utils.py:332–335  ·  view source on GitHub ↗

Return the list of logged instances.

(classes: str = "*")

Source from the content-addressed store, hash-verified

330
331
332def fetch_logged_instances(classes: str = "*") -> list[tuple[str, int]]:
333 """Return the list of logged instances."""
334 classnames = string_to_classes(classes)
335 return [(cn, len(tracked_classes[cn])) for cn in classnames]
336
337
338def count_logged_instances(classes: str, file: TextIO = sys.stdout) -> None:

Callers

nothing calls this directly

Calls 1

string_to_classesFunction · 0.85

Tested by

no test coverage detected