Install the Python SDK
Installing the Python SDK and Accessing Distributional UI
Was this helpful?
Installing the Python SDK and Accessing Distributional UI
Was this helpful?
The dbnl SDK supports . You can install the latest release of the SDK with the following command on Linux or macOS, install a specific release, and install :
To install the latest stable release of the dbnl
package:
To install a specific version (e.g., version 0.22.0
):
eval
ExtraThe dbnl.eval
extra includes additional features and requires an external spaCy model.
To install the required en_core_web_sm
pretrained English-language NLP model model for spaCy:
dbnl
with the eval
ExtraTo install dbnl
with evaluation extras:
If you need a specific version with evaluation extras (e.g., version 0.22.0
):
We recommend setting your API token as an environment variable, see below.
DBNL has three reserved environment variables that it reads in before execution.
DBNL_API_TOKEN
The API token used to authenticate your dbnl account.
DBNL_API_URL
The base url of the Distributional API. For SaaS users, set this variable to api.dbnl.com
. For other users, please contact your sys admin.
DBNL_APP_URL
An optional base url of the Distributional app. If this variable is not set, the app url is inferred from the DBNL_API_URL
variable. For on-prem users, please contact your sys admin if you cannot reach the Distributional UI.
To check your SDK version:
To check your API server version:
Logging into the web app
Clicking the hamburger menu (☰) on the top-left corner
Viewing the version number listed in the footer
You should have already received an invite email from the Distributional team to create your account. If that is not the case, please reach out to your Distributional contact. You can access and/or generate your token at (which will prompt you to login if you are not already).
DBNL has three available deployment types, SaaS, , and .