LogoLogo
AboutBlogLaunch app ↗
v0.20.x
v0.20.x
  • Introduction to AI Testing
  • Welcome to Distributional
  • Motivation
  • What is AI Testing?
  • Stages in the AI Software Development Lifecycle
    • Components of AI Testing
  • Distributional Testing
  • Getting Access to Distributional
  • Learning about Distributional
    • The Distributional Framework
    • Defining Tests in Distributional
      • Automated Production test creation & execution
      • Knowledge-based test creation
      • Comprehensive testing with Distributional
    • Reviewing Test Sessions and Runs in Distributional
      • Reviewing and recalibrating automated Production tests
      • Insights surfaced elsewhere on Distributional
      • Notifications
    • Data in Distributional
      • The flow of data
      • Components and the DAG for root cause analysis
      • Uploading data to Distributional
      • Living in your VPC
  • Using Distributional
    • Getting Started
    • Access
      • Organization and Namespaces
      • Users and Permissions
      • Tokens
    • Data
      • Data Objects
      • Run-Level Data
      • Data Storage Integrations
      • Data Access Controls
    • Testing
      • Creating Tests
        • Test Page
        • Test Drawer Through Shortcuts
        • Test Templates
        • SDK
      • Defining Assertions
      • Production Testing
        • Auto-Test Generation
        • Recalibration
        • Notable Results
        • Dynamic Baseline
      • Testing Strategies
        • Test That a Given Distribution Has Certain Properties
        • Test That Distributions Have the Same Statistics
        • Test That Columns Are Similarly Distributed
        • Test That Specific Results Have Matching Behavior
        • Test That Distributions Are Not the Same
      • Executing Tests
        • Manually Running Tests Via UI
        • Executing Tests Via SDK
      • Reviewing Tests
      • Using Filters
        • Filters in the Compare Page
        • Filters in Tests
    • Python SDK
      • Quick Start
      • Functions
        • login
        • Project
          • create_project
          • copy_project
          • export_project_as_json
          • get_project
          • get_or_create_project
          • import_project_from_json
        • Run Config
          • create_run_config
          • get_latest_run_config
          • get_run_config
          • get_run_config_from_latest_run
        • Run Results
          • get_column_results
          • get_scalar_results
          • get_results
          • report_column_results
          • report_scalar_results
          • report_results
        • Run
          • close_run
          • create_run
          • get_run
          • report_run_with_results
        • Baseline
          • create_run_query
          • get_run_query
          • set_run_as_baseline
          • set_run_query_as_baseline
        • Test Session
          • create_test_session
      • Objects
        • Project
        • RunConfig
        • Run
        • RunQuery
        • TestSession
        • TestRecalibrationSession
        • TestGenerationSession
        • ResultData
      • Experimental Functions
        • create_test
        • get_tests
        • get_test_sessions
        • wait_for_test_session
        • get_or_create_tag
        • prepare_incomplete_test_spec_payload
        • create_test_recalibration_session
        • wait_for_test_recalibration_session
        • create_test_generation_session
        • wait_for_test_generation_session
      • Eval Module
        • Quick Start
        • Application Metric Sets
        • How-To / FAQ
        • LLM-as-judge and Embedding Metrics
        • RAG / Question Answer Example
        • Eval Module Functions
          • Index of functions
          • eval
          • eval.metrics
    • Notifications
    • Release Notes
  • Tutorials
    • Instructions
    • Hello World (Sentiment Classifier)
    • Trading Strategy
    • LLM Text Summarization
      • Setting the Scene
      • Prompt Engineering
      • Integration testing for text summarization
      • Practical considerations
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
  • Accessing the Distributional UI and API token
  • Environment Variables
  • Linux/Mac OS Set Up

Was this helpful?

Export as PDF
  1. Using Distributional

Getting Started

Installing the Python SDK and Accessing Distributional UI

PreviousLiving in your VPCNextAccess

Last updated 1 month ago

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.20.0):

pip install "dbnl==0.20.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.20.0):

pip install "dbnl[eval]==0.20.0"

Accessing the Distributional UI and API token

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

Environment Variables

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

Variable Name
Description

DBNL_API_TOKEN

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.

Linux/Mac OS Set Up

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

echo 'export DBNL_API_TOKEN="copy_paste_dbnl_api_token"'| tee -a  ~/.zshrc || tee -a ~/.bashrc
echo 'export DBNL_API_URL="api.dbnl.com"'| tee -a  ~/.zshrc || tee -a ~/.bashrc
exec "$SHELL"

To confirm that the dbnl API Token is set in your environment, run the following command and verify its output is the correct token.

echo $DBNL_API_TOKEN
echo $DBNL_API_URL

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 your token at (which will prompt you to login if you are not already).

The API token used to authenticate your dbnl account. You can generate your API token at

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