Skip to content

bananaml/banana-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published