MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_project_path

Function get_project_path

registry.py:320–338  ·  view source on GitHub ↗

Look up a project's path by name. Args: name: The project name. Returns: The project Path, or None if not found.

(name: str)

Source from the content-addressed store, hash-verified

318
319
320def get_project_path(name: str) -> Path | None:
321 """
322 Look up a project's path by name.
323
324 Args:
325 name: The project name.
326
327 Returns:
328 The project Path, or None if not found.
329 """
330 _, SessionLocal = _get_engine()
331 session = SessionLocal()
332 try:
333 project = session.query(Project).filter(Project.name == name).first()
334 if project is None:
335 return None
336 return Path(project.path)
337 finally:
338 session.close()
339
340
341def list_registered_projects() -> dict[str, dict[str, Any]]:

Callers 11

get_new_project_infoFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
create_projectFunction · 0.90
get_projectFunction · 0.90
delete_projectFunction · 0.90
get_project_promptsFunction · 0.90
update_project_promptsFunction · 0.90
reset_projectFunction · 0.90
update_project_settingsFunction · 0.90

Calls 2

_get_engineFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected