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/v1/endpoint_operations.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
|
download_package(*, task_pkg, dest)
async
¶
Download package to destination
Source code in fractal_server/tasks/v1/endpoint_operations.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
inspect_package(path, logger_name=None)
¶
Inspect task package to extract version, name 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
.
Note: package name is normalized via _normalize_package_name
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
Path the path in which the package is saved |
required |
Returns:
Name | Type | Description |
---|---|---|
version_manifest |
dict
|
A dictionary containing |
dict
|
pacakge, and |
|
dict
|
tasks. |
Source code in fractal_server/tasks/v1/endpoint_operations.py
67 68 69 70 71 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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|