The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
flytekit.tools.fast_registration
Directory
Classes
| Class | Description |
|---|---|
FastPackageOptions |
FastPackageOptions is used to set configuration options when packaging files. |
Methods
| Method | Description |
|---|---|
compress_tarball() |
Compress code tarball using pigz if available, otherwise gzip. |
compute_digest() |
Walks the entirety of the source dir to compute a deterministic md5 hex digest of the dir contents. |
download_distribution() |
Downloads a remote code distribution and overwrites any local files. |
fast_package() |
Takes a source directory and packages everything not covered by common ignores into a tarball. |
get_additional_distribution_loc() |
:return Text:. |
print_ls_tree() |
Variables
| Property | Type | Description |
|---|---|---|
FAST_FILEENDING |
str |
|
FAST_PREFIX |
str |
|
PICKLE_FILE_PATH |
str |
Methods
compress_tarball()
def compress_tarball(
source: os.PathLike,
output: os.PathLike,
)Compress code tarball using pigz if available, otherwise gzip
| Parameter | Type | Description |
|---|---|---|
source |
os.PathLike |
|
output |
os.PathLike |
compute_digest()
def compute_digest(
source: Union[os.PathLike, List[os.PathLike]],
filter: Optional[callable],
) -> strWalks the entirety of the source dir to compute a deterministic md5 hex digest of the dir contents. :return Text:
| Parameter | Type | Description |
|---|---|---|
source |
Union[os.PathLike, List[os.PathLike]] |
|
filter |
Optional[callable] |
download_distribution()
def download_distribution(
additional_distribution: str,
destination: str,
)Downloads a remote code distribution and overwrites any local files.
| Parameter | Type | Description |
|---|---|---|
additional_distribution |
str |
|
destination |
str |
fast_package()
def fast_package(
source: os.PathLike,
output_dir: os.PathLike,
deref_symlinks: bool,
options: Optional[FastPackageOptions],
) -> os.PathLikeTakes a source directory and packages everything not covered by common ignores into a tarball named after a hexdigest of the included files. :return os.PathLike:
| Parameter | Type | Description |
|---|---|---|
source |
os.PathLike |
|
output_dir |
os.PathLike |
|
deref_symlinks |
bool |
|
options |
Optional[FastPackageOptions] |
The CopyFileDetection option set to None |
get_additional_distribution_loc()
def get_additional_distribution_loc(
remote_location: str,
identifier: str,
) -> str:return Text:
| Parameter | Type | Description |
|---|---|---|
remote_location |
str |
|
identifier |
str |
print_ls_tree()
def print_ls_tree(
source: os.PathLike,
ls: typing.List[str],
)| Parameter | Type | Description |
|---|---|---|
source |
os.PathLike |
|
ls |
typing.List[str] |
flytekit.tools.fast_registration.FastPackageOptions
FastPackageOptions is used to set configuration options when packaging files.
Parameters
class FastPackageOptions(
ignores: list[Ignore],
keep_default_ignores: bool,
copy_style: Optional[CopyFileDetection],
show_files: bool,
)| Parameter | Type | Description |
|---|---|---|
ignores |
list[Ignore] |
|
keep_default_ignores |
bool |
|
copy_style |
Optional[CopyFileDetection] |
|
show_files |
bool |