LogoLogo
AboutBlogLaunch app ↗
v0.23.x
v0.23.x
  • Get Started
  • Overview
  • Getting Access to Distributional
  • Install the Python SDK
  • Quickstart
  • Learning about Distributional
    • Distributional Concepts
    • Why We Test Data Distributions
    • The Flow of Data
  • Using Distributional
    • Projects
    • Runs
      • Reporting Runs
      • Setting a Baseline Run
    • Metrics
    • Tests
      • Creating Tests
        • Using Filters in Tests
        • Available Statistics and Assertions
      • Running Tests
      • Reviewing Tests
        • What Is a Similarity Index?
    • Notifications
    • Access Controls
      • Organization and Namespaces
      • Users and Permissions
      • Tokens
  • Platform
    • Sandbox
    • Self-hosted
      • Architecture
      • Deployment
        • Helm Chart
        • Terraform Module
      • Networking
      • OIDC Authentication
      • Data Security
  • Reference
    • Query Language
      • Functions
    • Python SDK
      • dbnl
      • dbnl.util
      • dbnl.experimental
      • Classes
      • Eval Module
        • Quick Start
        • dbnl.eval
        • dbnl.eval.metrics
        • Application Metric Sets
        • How-To / FAQ
        • LLM-as-judge and Embedding Metrics
        • RAG / Question Answer Example
      • Classes
  • CLI
  • Versions
    • Release Notes
Powered by GitBook

© 2025 Distributional, Inc. All Rights Reserved.

On this page
  • Installing Distributional
  • 1. Latest Stable Release
  • 2. Specific Release
  • 3. Installing with the eval Extra
  • 4. Accessing the Distributional UI and API token
  • 5. Environment Variables
  • Set up for various deployment types
  • Version Matching Requirements

Was this helpful?

Export as PDF

Install the Python SDK

Installing the Python SDK and Accessing Distributional UI

PreviousGetting Access to DistributionalNextQuickstart

Was this helpful?

For getting access to the Distributional platform, .

Installing Distributional

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 :

1. Latest Stable Release

To install the latest stable release of the dbnl package:

pip install dbnl

2. Specific Release

To install a specific version (e.g., version 0.22.0):

pip install "dbnl==0.22.0"

3. Installing with the eval Extra

The dbnl.eval extra includes additional features and requires an external spaCy model.

3.1. Install the Required spaCy Model

To install the required en_core_web_sm pretrained English-language NLP model model for spaCy:

pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl

3.2. Install dbnl with the eval Extra

To install dbnl with evaluation extras:

pip install "dbnl[eval]"

If you need a specific version with evaluation extras (e.g., version 0.22.0):

pip install "dbnl[eval]==0.22.0"

4. Accessing the Distributional UI and API token

We recommend setting your API token as an environment variable, see below.

5. Environment Variables

DBNL has three reserved environment variables that it reads in before execution.

Variable Name
Description

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.

Set up for various deployment types

#Run the following commands in your terminal. Make sure to wrap the API token in quotes.

export DBNL_API_TOKEN="copy_paste_dbnl_api_token"
export DBNL_API_URL="api.dbnl.com"
export DBNL_APP_URL="app.dbnl.com"
export DBNL_API_URL="localhost:8080/api"
export DBNL_APP_URL="localhost:8080"
export DBNL_API_URL="<CUSTOMER_SPECIFIC_API_URL>"
export DBNL_APP_URL="<CUSTOMER_SPECIFIC_APP_URL>"

Version Matching Requirements

DBNL provides different versions of the API and SDK. Ensuring compatibility is critical for proper functionality. SDK and API server versions must match major and minor version numbers.

To check your SDK version:

import dbnl
print(dbnl.__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 .

please reach out to our team
Python versions 3.9-3.12
https://app.dbnl.com/tokens
Sandbox
Full On-Premise