MCPcopy Index your code
hub / github.com/reactive-python/reactpy / all_example_names

Function all_example_names

docs/docs_app/examples.py:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def all_example_names() -> set[str]:
24 names = set()
25 for file in _iter_example_files(SOURCE_DIR):
26 path = file.parent if file.name == "main.py" else file
27 names.add("/".join(path.relative_to(SOURCE_DIR).with_suffix("").parts))
28 return names
29
30
31def load_one_example(file_or_name: Path | str) -> Callable[[], ComponentType]:

Callers 1

load_examplesFunction · 0.85

Calls 1

_iter_example_filesFunction · 0.85

Tested by

no test coverage detected