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

Function get_normalized_example_name

docs/docs_app/examples.py:38–43  ·  view source on GitHub ↗
(
    name: str, relative_to: str | Path | None = SOURCE_DIR
)

Source from the content-addressed store, hash-verified

36
37
38def get_normalized_example_name(
39 name: str, relative_to: str | Path | None = SOURCE_DIR
40) -> str:
41 return "/".join(
42 _get_root_example_path_by_name(name, relative_to).relative_to(SOURCE_DIR).parts
43 )
44
45
46def get_main_example_file_by_name(

Callers 3

runMethod · 0.90
runMethod · 0.90
ExampleFunction · 0.90

Calls 1

Tested by

no test coverage detected