.kxi.install¶
Installing packages
.kxi.install downloads packages from the kdb Insights Enterprise Package Manager service
and installs them into the directory configured by KX_PACKAGE_PATH.
Once installed, packages are available via:
| type | function |
|---|---|
| kxi package | .kxi.packages.load |
| kdbx module | use |
| Python wheel | import |
Warning
If a package is not found on the Package Manager service, .kxi.install attempts to download it from PyPI. Conversely, if the package name is found on the Package Manager, PyPI is never consulted — even for a different version. Refer to Package index resolution strategy for details.
.kxi.install¶
Install one or more packages from the kdb Insights Enterprise Package Manager service.
If a package is not found on the Package Manager service, .kxi.install attempts to download the same named package from PyPI.
.kxi.install[packages]
import kxi.packages
kxi.packages.packages.install(packages)
Parameters:
| name | type | description |
|---|---|---|
packages |
string |
Comma-separated list of package names to install, e.g. "ml,test". |
Returns:
| type | description |
|---|---|
dict |
Dictionary with keys status, installed, and output describing the result of the install. |
Install a package named "bobby":
q).kxi.install["bobby"]
status | "ok"
installed| ,"bobby==1.0.0"
output | "Resolved 1 package in 830ms\nPrepared 1 package in 164ms\nInstalled 1 package in 8ms\n + bobby==1.0.0"
import kxi.packages
kxi.packages.packages.install("bobby")
# {'status': 'ok', 'installed': ['bobby==1.0.0'], 'output': '...'}