The banana package is a python client to interact with your machine learning models hosted on Banana
Project description
Banana Python SDK
Please see our usage docs in the official Banana Documentation
Developing on the SDK
Set up the environment and install the package in editable mode
python -m venv .venv
source .venv/bin/activate
pip install -e ./
Set up a test directory to play around with the changes
mkdir tests
cd tests
touch test.py
Create some script
from banana_dev import API
api = API("11111111-1111-1111-1111-111111111111")
projects, status = api.list_projects()
print('list', projects, status)
project, status = api.get_project(projects["results"][0]["id"])
print('get', project, status)
updated_project, status = api.update_project(projects["results"][0]["id"], {"maxReplicas": 2})
print('update', updated_project, status)
Run it
python test.py
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
banana_dev-6.3.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for banana_dev-6.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85dd3e769eeb66da6c2e40364bba9fdf89e853a1e78b1de24252effdfba0e03 |
|
MD5 | 4966612fe70a10ea59a7c3e78292e84a |
|
BLAKE2b-256 | 4d1eea473de6647ab4fddbd683a3047c8c377c5d99bc628db868d787ba7d9ed8 |