Libraries API
Overview
The libraries API, provides users with the capability to install custom libraries as needed for the execution of blocks and pipelines
Usage - Install Libaries
from razor import Technology, LibraryMode
razor.api.libraries.install(
name = 'pandas',
version='1.0.3',
technology = Technology.PYTHON,
mode=LibraryMode.PIP
)
Arguments
Argument |
Description |
name |
Name of the library that needs to be installed |
version |
The actual version of the library that needs to be installed |
technology |
The type of technology the library uses. 1. Technology.PYTHON - Indicates that the library being installed is a python library |
mode |
Indicates the mode with which the library is going to be installed 1. LibraryMode.PIP - Indicates that the installation is a PIP installation2. LibraryMode.File - Indicates that the installation is a wheel file installation |
Usage - List all Libraries
import razor
razor.api.libraries()
Argumentes
Argument |
Description |
name |
Name of the library that has been installed |
Usage - Uninstall Library
import razor
pandas_lib = razor.api.libraries(name='pandas')
pandas_lib.uninstall()