PythonPackage
laktory.models.resources.databricks.PythonPackage
¤
Bases: BaseModel, PulumiResource, TerraformResource
Python Package built and deployed as a wheel file.
This resource type allows to target a local python package to generate a wheel file that will be built at deploy and deployed as a WorkspaceFile.
Examples:
import laktory as lk
pp = lk.models.resources.databricks.PythonPackage(
package_name="lake",
config_filepath="lake/pyproject.toml",
dirpath="/wheels/",
)
| PARAMETER | DESCRIPTION |
|---|---|
access_controls
|
Access controls list
TYPE:
|
build_command
|
The build command used to generate the wheel file.
TYPE:
|
config_filepath
|
File path of the pyproject.toml file or setup.py configuration file.
TYPE:
|
dirpath
|
Workspace directory inside rootpath in which the workspace file is deployed. Used only if
TYPE:
|
package_name
|
Name of the package
TYPE:
|
path_
|
Workspace filepath for the file. Overwrite
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
get_path |
Get workspace path |
| ATTRIBUTE | DESCRIPTION |
|---|---|
filename |
File filename
TYPE:
|
resource_key |
package name
TYPE:
|
filename
property
¤
File filename
resource_key
property
¤
package name
get_path()
¤
Get workspace path
Source code in laktory/models/resources/databricks/pythonpackage.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |