Simplifies interacting with Bailo
Project description
Bailo Python Client
A simple Python API Wrapper for Bailo
Table of Contents
Key Features
- Uploading and downloading model binaries
Installing
Python 3.8.1 or higher is required
pip install bailo
Getting Started
from bailo import Client, Model
client = Client("http://localhost:8080")
# Create a model
yolo = Model.create(
client=client,
name="YoloV4",
description="You only look once!",
team_id="Uncategorised"
)
yolo.card_from_schema("minimal-general-v10-beta")
# Create a new release
my_release = yolo.create_release(version="0.1.0",
notes="Beta")
# Upload a file to the release
with open("yolo.onnx") as f:
my_release.upload("yolo", f)
Documentation
Documenation is rendered with Sphinx and served here.
Building locally
From the docs directory run either make html
or make.bat
on Windows. This will build it in the backend directory by
default.
Development
Install and add precommit
If already working on Bailo you may be prompted to overwrite Husky. Follow the instructions given by Git CLI.
pip install pre-commit
pre-commit install
Install the package locally
pip install -e .
Testing
The package uses Pytest to test packages. Tests can be ran accordingly from within this directory. Tests are split into categories sections for automation purposes.
In order to run integration tests make sure Bailo is running on https://localhost:8080
:
pytest -m integration
Run all other tests:
pytest
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
Built Distribution
File details
Details for the file bailo-2.5.0.tar.gz
.
File metadata
- Download URL: bailo-2.5.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3ade79e82c899eeb5fae6ad1b80bb8ce0f8abb27f2dba2d0d018729d2056db |
|
MD5 | 0d48100cf35dbff029b857e7327e8369 |
|
BLAKE2b-256 | daa93abfdacd2931144a163137fc9f228062ded844d486e04b42448fd11b62c7 |
File details
Details for the file bailo-2.5.0-py3-none-any.whl
.
File metadata
- Download URL: bailo-2.5.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ed60941f3c28e993a02afd803acc63771386cc89a9ae53b3f3c5735558f430 |
|
MD5 | 52dcd3b5d65c3dab5c0cbccff0b2075d |
|
BLAKE2b-256 | 91700f03da95e450ecd1af9f071b4cf736e134dbd31c14e8f4e6ae98ff425587 |