Skip to main content

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


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)

Uploaded Source

Built Distribution

banana_dev-6.3.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page