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
Metadata
Release files for banana-dev 6.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| banana_dev-6.3.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| banana_dev-6.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / banana_dev-6.3.0.tar.gz
| Download URL | banana_dev-6.3.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39ff73163f7c7aa881ea27a64d03b9331d2f43acf11825c02544f437878933c3
|
|
BLAKE2b-256 checksum How to use checksums |
f5a748416129ecf3a78dab0b3007dbf2cd991d2852f99205f08f5d7208da276b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / banana_dev-6.3.0-py3-none-any.whl
| Download URL | banana_dev-6.3.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d85dd3e769eeb66da6c2e40364bba9fdf89e853a1e78b1de24252effdfba0e03
|
|
BLAKE2b-256 checksum How to use checksums |
4d1eea473de6647ab4fddbd683a3047c8c377c5d99bc628db868d787ba7d9ed8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|