CodeBundle
A class representing a code bundle for a task. This is used to package the code and the inflation path. The code bundle computes the version of the code using the hash of the code.
Attributes
| Attribute | Type | Description |
|---|---|---|
| computed_version | str | The version of the code bundle. This is the hash of the code. |
| destination | str = "." | The destination path for the code bundle to be inflated to. |
| tgz | `str | None` = null |
| pkl | `str | None` = null |
| downloaded_path | `pathlib.Path | None` = null |
| files | `List[str] | None` = null |
Methods
with_downloaded_path()
@classmethod
def with_downloaded_path(
path: pathlib.Path
) - > [CodeBundle](codebundle.md?sid=flyte_models_codebundle)
Create a new CodeBundle with the given downloaded path.
Parameters
| Name | Type | Description |
|---|---|---|
| path | pathlib.Path | The file system path where the code bundle has been downloaded and inflated. |
Returns
| Type | Description |
|---|---|
[CodeBundle](codebundle.md?sid=flyte_models_codebundle) | A new CodeBundle instance with the 'downloaded_path' attribute set to the provided path. |