- A Datalab account with an API key
- Python 3.11+ installed
- The Datalab SDK:
pip install datalab-python-sdk - Your
DATALAB_API_KEYenvironment variable set
Version Lifecycle
Every pipeline goes through a predictable lifecycle:
When you edit a published pipeline, your changes go into a draft. The published version is untouched until you explicitly publish again.
Publish a Version
Create an immutable snapshot of the current pipeline steps:Edit and Iterate
After publishing, any edits create a draft that is separate from the published version:Discard a Draft
Replace the draft’s steps with a published version’s steps:- Without
version(send{}as the body), the draft goes back to the active version. The active version doesn’t change. - With
version=N, the draft gets version N’s steps, and N becomes the active version: runs that don’t pin a version use N from then on. This is how you roll back.
Browse Version History
List all published versions for a pipeline:Best Practices
Pin production integrations to a specific version. When callingrun_pipeline() from production code, pass an explicit version number. This protects you from accidental changes:
version=0 to run the draft version against test documents:
Next Steps
Run a Pipeline
Execute pipelines with version selection, overrides, and polling.
Create a Pipeline
Build pipelines with Forge or the SDK.
Pipeline Overview
Processor types, composition rules, and when to use pipelines.
SDK Reference
Full SDK reference for all pipeline methods.