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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bso-2.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

bso-2.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file bso-2.0.0.tar.gz.

File metadata

  • Download URL: bso-2.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for bso-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4e7116489be4a4415aa18b74cf6df50dc8ca5ac0795aa7732cac6eb9224540cf
MD5 ad247277c99fdc4db64088031e314f46
BLAKE2b-256 1fabe1d529a77faf9204e024ea78e1387d6f0251381f7fef5f7889a71a9345a3

See more details on using hashes here.

File details

Details for the file bso-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: bso-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for bso-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f66698d79798b85cfdd74763182097dc002458fc76997bc70119c0510fe4a65
MD5 fb72d19ab5c3d5ba14e9157916c7e6e5
BLAKE2b-256 8a9077e9ed28cd10626ec5c32fa707130f2bf49a4a073e83e57a4f443e1d9b67

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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