sagemaker.serve.builder.requirements_manager#
Requirements Manager class to pull in client dependencies from a .txt or .yml file
Classes
Manages dependency installation by detecting file types |
- class sagemaker.serve.builder.requirements_manager.RequirementsManager[source]#
Bases:
objectManages dependency installation by detecting file types
- capture_and_install_dependencies(dependencies: str | None = None) str[source]#
Detects the type of file dependencies will be installed from
If a req.txt or conda.yml file is provided, it verifies their existence and returns the local file path
- Parameters:
dependencies (str) – Local path where dependencies file exists.
- Returns:
file path of the existing or generated dependencies file