Main Sequence SDK
Project description
Main Sequence Python SDK
The Main Sequence Python SDK is the client and development toolkit for the Main Sequence platform.
The Main Sequence platform allows you to:
- rapidly build and deploy data products and data workflows as a unified API with a normalized structure through
DataNodes - rapidly deploy RBAC-enabled dashboards on the platform
- rapidly deploy agents using the Google Agent SDK
The key idea is that you can focus on development and deployment, while the platform handles the DevOps layer.
Project Status
- Status: actively maintained
- Last commit:
2026-03-27-6aa5dea-docs logo fix v.3.17.6 - Open issues: GitHub Issues
- Documentation: Documentation Site
- Security policy: SECURITY.md
- Release history: CHANGELOG.md
What this repository contains
This repository contains the SDK and the documentation used to build and operate Main Sequence projects.
Main package areas:
mainsequence.tdag: data orchestration,DataNodes, update workflows, and persistencemainsequence.client: API client models for projects, jobs, data node storages, assets, sharing, and platform resourcesmainsequence.virtualfundbuilder: portfolio construction and portfolio time series workflowsmainsequence.instruments: pricing-oriented market data and instrument toolingmainsequence.dashboards.streamlit: reusable Streamlit scaffolding and dashboard helpersmainsequence.cli: themainsequencecommand-line interface
Repository areas:
docs/: tutorials, knowledge guides, CLI docs, and generated reference docsexamples/: worked examples and usage patternstests/: automated tests
Documentation map
The documentation is organized into four reading modes:
- Tutorial: the guided learning path
- Knowledge: deeper conceptual guides
- CLI: command-focused operational documentation
- Reference: generated API reference
Recommended entry points:
- Tutorial:
- Knowledge:
- CLI:
Quick start
Install the package:
pip install mainsequence
Authenticate:
mainsequence login
Check that you can see your projects:
mainsequence project list
Create a new project:
mainsequence project create my-first-project
Set it up locally:
mainsequence project set-up-locally <PROJECT_ID>
cd my-first-project
mainsequence project build_local_venv --path .
From there, the normal learning path is:
- create your first
DataNode - model app-facing data with
SimpleTablewhen needed - add an API or another application surface
- understand sharing and RBAC
- schedule jobs
- build dashboards or downstream consumers
Installation for development
This repository uses pyproject.toml and a development dependency group.
With uv:
uv sync --group dev
Or with pip, install the package and the docs/test tools you need separately.
Common development commands
Run the CLI:
mainsequence --help
Run tests:
pytest
Serve the docs locally:
mkdocs serve
Build the docs:
mkdocs build
Lint the code:
ruff check .
Format the code:
black .
How to read this repository
If you are evaluating the platform:
- start with the tutorial in
docs/tutorial/
If you are building a feature and already know the area:
- go straight to the relevant guide in
docs/knowledge/
If you are operating projects day to day:
- use
docs/cli/and themainsequence --helpcommand tree
If you need the exact SDK surface:
- use
docs/reference/
Package metadata
- Package name:
mainsequence - Python:
>=3.11 - CLI entry point:
mainsequence
Project metadata is defined in pyproject.toml.
License
This repository is distributed under the terms described in LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mainsequence-3.18.14.tar.gz.
File metadata
- Download URL: mainsequence-3.18.14.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e239b76614d316528d001ba34899f50fb27226e10be108d67887f19f5f8b34a
|
|
| MD5 |
ef1bef80eee2d083ca17d665e7bb6b84
|
|
| BLAKE2b-256 |
759dd7bd89192371eafd60c5b3d87c93998850fb61be9228e454f968da7d01b2
|
Provenance
The following attestation bundles were made for mainsequence-3.18.14.tar.gz:
Publisher:
publish-to-pypi.yml on mainsequence-sdk/mainsequence-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mainsequence-3.18.14.tar.gz -
Subject digest:
8e239b76614d316528d001ba34899f50fb27226e10be108d67887f19f5f8b34a - Sigstore transparency entry: 1364671126
- Sigstore integration time:
-
Permalink:
mainsequence-sdk/mainsequence-sdk@fc5fd4967d981571763e1fe2cc278c43383ed26e -
Branch / Tag:
refs/tags/v3.18.14 - Owner: https://github.com/mainsequence-sdk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fc5fd4967d981571763e1fe2cc278c43383ed26e -
Trigger Event:
push
-
Statement type:
File details
Details for the file mainsequence-3.18.14-py3-none-any.whl.
File metadata
- Download URL: mainsequence-3.18.14-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f59f7ef864b9074cee8c9da41065454bc27d7ae4ed1adb8b6d19a1f7c8c1a571
|
|
| MD5 |
230ad689cb8c2b375c50f02bf614a009
|
|
| BLAKE2b-256 |
f32c53f10ed61efc0c9bbb854453fbcf425fac08cc7371673e4e2f3652c3a4eb
|
Provenance
The following attestation bundles were made for mainsequence-3.18.14-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on mainsequence-sdk/mainsequence-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mainsequence-3.18.14-py3-none-any.whl -
Subject digest:
f59f7ef864b9074cee8c9da41065454bc27d7ae4ed1adb8b6d19a1f7c8c1a571 - Sigstore transparency entry: 1364671246
- Sigstore integration time:
-
Permalink:
mainsequence-sdk/mainsequence-sdk@fc5fd4967d981571763e1fe2cc278c43383ed26e -
Branch / Tag:
refs/tags/v3.18.14 - Owner: https://github.com/mainsequence-sdk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@fc5fd4967d981571763e1fe2cc278c43383ed26e -
Trigger Event:
push
-
Statement type: