LogoLogo
RedBrick AIGuides
  • Quick Start
    • Walkthrough Guides
    • Get Started with a Project
    • Get Started with Workspace
      • Cohort Creation
      • Datapoint Classification
      • Configuring Metadata Schema
    • Creating a RedBrick AI Account
  • Organizations
    • Organization and Project Roles
    • Inviting Your Team
      • Single Sign-on
  • Dashboard
    • Account Settings
    • User Preferences
    • Worklist
    • Preview Tool
    • Integrations
    • Taxonomies
    • Boost
      • Auto Annotator
    • Home
      • Sections
  • Importing Data
    • Uploading Data to RedBrick
    • Import Cloud Data
      • Configuring AWS s3
      • Configuring Azure Blob
      • Configuring GCS
      • Configuring AltaDB
      • Creating an Items List
    • Troubleshooting
  • Projects
    • Tasks & Assignment
    • Comments & Raise Issue
    • Reference Standards
    • Project & Task Analytics
    • Labeler Evaluation
  • Project Pages
    • Data Page
    • Settings Page
      • Custom Label Validation
      • Custom Hanging Protocol
      • Webhooks
    • Multiple Labeling
      • Consensus
        • Agreement calculation
      • Task duplication
  • Annotation & viewer
    • Viewer Basics
      • Document Viewer
      • Multiple Modalities
      • Intellisync
      • Annotation Mirroring
    • Creating, Editing and Deleting Annotations
    • Visualization and Masking
    • Segmentation
      • Segmentation Tools
      • Instance vs. Semantic
      • Overlapping Segmentations
    • Heat maps
  • Python SDK & CLI
    • Full documentation
    • Installation & API Keys
    • SDK Overview
      • Importing Data & Annotations
      • Programmatic Label & Review
      • Assigning & Querying Tasks
      • Exporting Annotations
    • CLI Overview
      • Creating & Cloning Projects
      • Import Data & Annotations
      • Exporting Annotations
    • Importing Annotations Guide
    • Formats
      • Full Format Reference
      • Export Structure
  • Useful Links
    • Privacy Policy
Powered by GitBook
On this page

Was this helpful?

  1. Python SDK & CLI

SDK Overview

PreviousInstallation & API KeysNextImporting Data & Annotations

Last updated 1 year ago

Was this helpful?

The RedBrick AI Python SDK is a Python package that allows developers to interact with the RedBrick AI application programmatically.

We recommend you use the Python SDK if you want to:

  • Build data pipelines with Python and want to integrate your RedBrick AI annotation;

  • Write advanced scripts beyond simple import & export;

  • Take advantage of certain features such as , , or ;

For simple data import and annotation export, we , which has a simple interface with optimizations for basic use cases.

This SDK documentation is intended to cover high-level guides and use cases. If you are interested in more detailed documentation of the SDK interface, .

Initializing the RedBrick SDK in Python

Nearly all operations with the SDK are performed on either the or objects. You can instantiate these objects using your .

import redbrick

project = redbrick.get_project(
    org_id="...",
    project_id="...",
    api_key="...",
)
organization = redbrick.get_org(
    org_id="...", 
    api_key="...",
)

Both and take an optional url argument that defaults to . If you are using a private/single-tenant deployment of RedBrick AI, this will need to be changed for your deployment - reach out to us for confirmation of what your case-specific URL needs to be.

HTML Tooltips
Series and/or Task Level Metadata
Taxonomy Nesting
recommend you use the CLI
CLI Overview
please visit the full SDK reference documentation
Project
Organization
API Key, Org ID, and Project ID
redbrick.get_project
redbrick.get_org
https://api.redbrickai.com