MCPcopy Create free account
hub / github.com/feast-dev/feast / py_path_to_module

Function py_path_to_module

sdk/python/feast/repo_operations.py:42–48  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

40
41
42def py_path_to_module(path: Path) -> str:
43 return (
44 str(path.relative_to(os.getcwd()))[: -len(".py")]
45 .replace("./", "")
46 .replace("/", ".")
47 .replace("\\", ".")
48 )
49
50
51def read_feastignore(repo_root: Path) -> List[str]:

Callers 1

parse_repoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected