Skip to main content

Bailo Python Client

PyPI - Python Version PyPI - Version License Contributor Covenant

A lightweight, Python API wrapper for Bailo, providing streamlined programmatic access to its core functionality - designed for Data Scientists, ML Engineers, and Developers who need to integrate Bailo capabilities directly into their workflows.


Table of Contents
  1. Quickstart
  2. Documentation
  3. Development

Quickstart

Requires: a Python version as declared by requires-python and the classifiers in pyproject.toml (also shown on PyPI)

Installation

pip install bailo

Optional: enable integration with MLFlow for advanced model tracking:

pip install bailo[mlflow]

Basic Usage

from bailo import Client, Model

# Connect to Bailo server
client = Client("http://localhost:8080")

# Create a model
yolo = Model.create(client=client, name="YoloV4", description="You only look once!")

# Populate datacard using a predefined schema
yolo.card_from_schema("minimal-general-v10")

# Create a new release
my_release = yolo.create_release(version="0.1.0", notes="Beta")

# Upload a binary file to the release
with open("yolo.onnx") as f:
    my_release.upload("yolo", f)

Core Features

  • Upload and download model binaries
  • Manage Models & Releases
  • Handle Datacards & Schemas
  • Manage Schemas
  • Process Access Requests

Note: Certain collaborative actions (approvals, review threads, etc.) are best handled via the Bailo web interface.

Documentation

Full Python client documentation: Bailo Python Docs.

Building locally

Refer to backend/docs/README.md for local build steps.

Development

The following steps are only required for users who wish to extend or develop the Bailo Python client locally.

Requires: uv. uv installs and uses the Python version in .python-version by default. Any supported version can be used with --python.

Python Setup

From within the lib/python directory:

uv sync --extra mlflow --group test

This creates a .venv and installs the pinned dependencies from uv.lock. Prefix commands with uv run to use it, or activate it with source .venv/bin/activate.

Dependency Management

pyproject.toml declares minimum versions only (>=, no upper caps), as these are what pip install bailo users resolve against. uv.lock pins the exact versions used in development and CI. Dependabot only raises PRs for security advisories. Routine upgrades are manual with uv lock --upgrade-package <name>, and the ruff version comes from .pre-commit-config.yaml.

The python_test_lowest CI job runs the tests against those minimum versions on Python 3.11. If it fails, reproduce it locally without touching uv.lock or .venv:

uv run --python 3.11 --resolution lowest-direct --isolated --extra mlflow --group test pytest

Then raise the failing floor in pyproject.toml to the oldest version that passes, re-run the command above, and finish with uv lock.

Running Tests

To run the unit tests:

uv run pytest

To run the integration tests (requires Bailo running on https://localhost:8080):

uv run pytest -m integration

To run the mlflow integration tests (requires Bailo running on https://localhost:8080 and mlflow running on https://localhost:5050 e.g. via docker):

docker run -p 5050:5000 \
    "ghcr.io/mlflow/mlflow:v$(uv pip show mlflow-skinny | awk '/Version:/ {print $2}')" \
    mlflow server --host 0.0.0.0 --port 5000

uv run pytest -m mlflow

Metadata

Release files for bailo 3.13.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 bailo 3.13.0
File Size Uploaded Provenance Actions
bailo-3.13.0.tar.gz 32.3 kB With provenance Details for bailo-3.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 69.5 kB

Release files / bailo-3.13.0.tar.gz

Download URL bailo-3.13.0.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a43c5773df79a7323ef51d599756dd503ce380a5b0f823f2a4b2175af5ebc0f3
BLAKE2b-256 checksum
How to use checksums
f0902a26bba1d52a72ce3b44b21743acb726e68ee5de5f9e14d6ef76872d680c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / bailo-3.13.0-py3-none-any.whl

Download URL bailo-3.13.0-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e84287c9871321ff6bc96e478ccaf4950bbbb03f788cccfd79d40fc29a8232de
BLAKE2b-256 checksum
How to use checksums
993fd1ee00d72b6e8a45de307c71663f01f60393ee3f93798256e0b952c4e644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for bailo 3.13.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bailo-3.13.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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

3.13.0 This release

2 release files Full 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