Skip to main content

BSO - Boson Model Registry SDK

Python SDK for the Boson Model Registry - manage ML models, releases, and deployments.

Installation

pip install bso

Quick Start

from bso import Registry

# Initialize client
registry = Registry(
    base_url="https://your-registry.example.com/api",
    api_key="your-api-key"
)

# Or use environment variables
# REGISTRY_URL=https://your-registry.example.com/api
# REGISTRY_API_KEY=your-api-key
registry = Registry.from_env()

# List models
models = registry.list_models()

# Create a model
model = registry.create_model(
    name="my-model",
    storage_path="s3://bucket/models/my-model",
    description="My ML model"
)

# Create a release
release = registry.create_release(
    model_name="my-model",
    version="1.0.0",
    tag="v1.0.0",
    digest="sha256:abc123...",
    metadata={"accuracy": 0.95}
)

# Deploy a release
deployment = registry.deploy(
    release_id=release.id,
    environment="production"
)

# Get latest release for an environment
latest = registry.get_latest_release(
    model_name="my-model",
    environment="production"
)

Features

  • Model management (create, list, get, delete)
  • Release versioning with metadata
  • Deployment tracking across environments
  • Docker build triggering and status
  • Artifact management
  • Audit logging

Requirements

  • Python 3.8+
  • httpx
  • pydantic

License

MIT

Metadata

Release files for bso 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bso 2.0.0
File Size Uploaded
bso-2.0.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bso 2.0.0
File Interpreter ABI Platform
bso-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / bso-2.0.0.tar.gz

Download URL bso-2.0.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4e7116489be4a4415aa18b74cf6df50dc8ca5ac0795aa7732cac6eb9224540cf
BLAKE2b-256 checksum
How to use checksums
1fabe1d529a77faf9204e024ea78e1387d6f0251381f7fef5f7889a71a9345a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / bso-2.0.0-py3-none-any.whl

Download URL bso-2.0.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f66698d79798b85cfdd74763182097dc002458fc76997bc70119c0510fe4a65
BLAKE2b-256 checksum
How to use checksums
8a9077e9ed28cd10626ec5c32fa707130f2bf49a4a073e83e57a4f443e1d9b67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page