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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file banana_dev-6.3.0.tar.gz.

File metadata

  • Download URL: banana_dev-6.3.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for banana_dev-6.3.0.tar.gz
Algorithm Hash digest
SHA256 39ff73163f7c7aa881ea27a64d03b9331d2f43acf11825c02544f437878933c3
MD5 4932677ce58e2d169c0ef0842200a1a7
BLAKE2b-256 f5a748416129ecf3a78dab0b3007dbf2cd991d2852f99205f08f5d7208da276b

See more details on using hashes here.

File details

Details for the file banana_dev-6.3.0-py3-none-any.whl.

File metadata

  • Download URL: banana_dev-6.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for banana_dev-6.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d85dd3e769eeb66da6c2e40364bba9fdf89e853a1e78b1de24252effdfba0e03
MD5 4966612fe70a10ea59a7c3e78292e84a
BLAKE2b-256 4d1eea473de6647ab4fddbd683a3047c8c377c5d99bc628db868d787ba7d9ed8

See more details on using hashes here.

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