Skip to main content

BSO Python SDK

Python client library for the Docker Release Registry.

Installation

pip install bso

Quick Start

from bso import Registry

# Initialize client
registry = Registry(
    base_url="http://localhost/api",
    api_key="your-api-key"
)

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

# Create a model
model = registry.create_model(
    name="myorg/pytorch-model",
    storage_path="s3://models/myorg/pytorch-model",
    description="My PyTorch model"
)

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

# Record a deployment
deployment = registry.deploy(
    release_id=release.id,
    environment="production",
    metadata={"replicas": 3}
)

# Get latest release
latest = registry.get_latest_release(
    model_name="myorg/pytorch-model",
    environment="production"
)

print(f"Latest release: {latest.version}")

API Reference

See the documentation for complete API reference.

License

MIT

Metadata

Release files for boson-release 1.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 boson-release 1.0.0
File Size Uploaded Provenance
boson_release-1.0.0.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for boson-release 1.0.0
File Interpreter ABI Platform
boson_release-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / boson_release-1.0.0.tar.gz

Download URL boson_release-1.0.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
28e355166baf058a7364cdf798547bf2e2d5f415c004c616ace0837e39e5fbc3
BLAKE2b-256 checksum
How to use checksums
cef8aaf3a3c7f4f31c1f79c429f858377142dbfbb16329a963261c791aad957d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / boson_release-1.0.0-py3-none-any.whl

Download URL boson_release-1.0.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54a77c3bfd2ae73f9fd6b0ac9b92637ca2508f58e91392b35db70d235d1c5976
BLAKE2b-256 checksum
How to use checksums
71c69774f4278049a7239984f62fbc365185438719c5fe96c91bfb01b868541c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for boson-release 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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