Skip to main content

Main Sequence SDK

Project description

Main Sequence Logo

Main Sequence Python SDK

Docs Open Issues Last Commit Maintained

The Main Sequence Python SDK is the client and development toolkit for the Main Sequence platform.

The Main Sequence platform allows you to:

  1. rapidly build and deploy data products and data workflows as a unified API with a normalized structure through DataNodes
  2. rapidly deploy RBAC-enabled dashboards on the platform
  3. 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

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 persistence
  • mainsequence.client: API client models for projects, jobs, data node storages, assets, sharing, and platform resources
  • mainsequence.virtualfundbuilder: portfolio construction and portfolio time series workflows
  • mainsequence.instruments: pricing-oriented market data and instrument tooling
  • mainsequence.dashboards.streamlit: reusable Streamlit scaffolding and dashboard helpers
  • mainsequence.cli: the mainsequence command-line interface

Repository areas:

  • docs/: tutorials, knowledge guides, CLI docs, and generated reference docs
  • examples/: worked examples and usage patterns
  • tests/: automated tests

Documentation map

The documentation is organized into four reading modes:

  1. Tutorial: the guided learning path
  2. Knowledge: deeper conceptual guides
  3. CLI: command-focused operational documentation
  4. Reference: generated API reference

Recommended entry points:

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:

  1. create your first DataNode
  2. model app-facing data with SimpleTable when needed
  3. add an API or another application surface
  4. understand sharing and RBAC
  5. schedule jobs
  6. 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 the mainsequence --help command 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

mainsequence-3.18.9.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mainsequence-3.18.9-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file mainsequence-3.18.9.tar.gz.

File metadata

  • Download URL: mainsequence-3.18.9.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

Hashes for mainsequence-3.18.9.tar.gz
Algorithm Hash digest
SHA256 b70a0b57b592cfed3ab4b55c6aa7a5bab463cfa0efbd7d6f1417287ffbdc3f7f
MD5 e85dea53997d510bced6f7f43d4e1f46
BLAKE2b-256 aee72af59b69fff9ca9e658d80c458c38924611e9f934d935cbc99e67442a72c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainsequence-3.18.9.tar.gz:

Publisher: publish-to-pypi.yml on mainsequence-sdk/mainsequence-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mainsequence-3.18.9-py3-none-any.whl.

File metadata

  • Download URL: mainsequence-3.18.9-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

Hashes for mainsequence-3.18.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5525804ea64d7a83dea43bfd4263d87740efefca9c55e8539f5f1a3ddaafe820
MD5 c2530659654051a3131f68962a834fd1
BLAKE2b-256 65c767bda7e2d8e89a5882fc3132eefaeed5f304c9c6cff6b5d12fb9562237b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mainsequence-3.18.9-py3-none-any.whl:

Publisher: publish-to-pypi.yml on mainsequence-sdk/mainsequence-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page