Library
laktory.models.resources.databricks.Library
¤
Bases: LibraryBase
Databricks library
Examples:
import io
from laktory import models
library_yaml = '''
cluster_id: cluster-id
pypi:
- package: pandas
'''
library = models.resources.databricks.Library.model_validate_yaml(
io.StringIO(library_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
cluster_id
|
ID of the databricks_cluster to install the library on
TYPE:
|
cran
|
Configuration block for a CRAN library. The block consists of the following fields:
TYPE:
|
egg
|
Path to the EGG library. Installing Python egg files is deprecated and is not supported in Databricks Runtime 14.0 and above. Use
TYPE:
|
jar
|
Path to the JAR library. Supported URIs include Workspace paths, Unity Catalog Volumes paths, and S3 URIs. For example:
TYPE:
|
maven
|
Configuration block for a Maven library. The block consists of the following fields:
TYPE:
|
pypi
|
Configuration block for a PyPI library. The block consists of the following fields:
TYPE:
|
requirements
|
Path to the requirements.txt file. Only Workspace paths and Unity Catalog Volumes paths are supported. For example:
TYPE:
|
whl
|
Path to the wheel library. Supported URIs include Workspace paths, Unity Catalog Volumes paths, and S3 URIs. For example:
TYPE:
|
laktory.models.resources.databricks.library.LibraryCran
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
package
|
The name of the CRAN package to install
TYPE:
|
repo
|
The repository where the package can be found. If not specified, the default CRAN repo is used
TYPE:
|
laktory.models.resources.databricks.library.LibraryMaven
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
coordinates
|
Gradle-style Maven coordinates. For example:
TYPE:
|
exclusions
|
List of dependencies to exclude. For example:
TYPE:
|
repo
|
The repository where the package can be found. If not specified, the default CRAN repo is used
TYPE:
|
laktory.models.resources.databricks.library.LibraryPypi
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
package
|
The name of the CRAN package to install
TYPE:
|
repo
|
The repository where the package can be found. If not specified, the default CRAN repo is used
TYPE:
|