endpoint_operations
create_package_dir_pip(*, task_pkg, create=True)
¶
Create venv folder for a task package and return corresponding Path object
Source code in fractal_server/tasks/v2/endpoint_operations.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
download_package(*, task_pkg, dest)
async
¶
Download package to destination and return wheel-file path.
Source code in fractal_server/tasks/v2/endpoint_operations.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
inspect_package(path, logger_name=None)
¶
Inspect task package to extract version and manifest
Note that this only works with wheel files, which have a well-defined
dist-info section. If we need to generalize to to tar.gz archives, we would
need to go and look for PKG-INFO
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
Path of the package wheel file. |
required |
logger_name |
Optional[str]
|
|
None
|
Returns:
Type | Description |
---|---|
dict[Literal['pkg_version', 'pkg_manifest'], str]
|
A dictionary with keys |
Source code in fractal_server/tasks/v2/endpoint_operations.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|