semvec/pypi-packages huggingface dataset:
banana-dev 6.3.0
The banana package is a python client to interact with your machine learning models hosted on Banana
License: MIT
Keywords: Banana client,API wrapper,Banana,SDK

# Banana Python SDK

Please see our usage docs in the official [Banana Documentation](https://docs.banana.dev/banana-docs/core-concepts/sdks/python)

## Developing on the SDK

Set up the environment and install the package in editable mode
```bash
python -m venv .venv
source .venv/bin/activate
pip install -e ./
```

Set up a test directory to play around with the changes
```bash
mkdir tests
cd tests
touch test.py
```

Create some script
```python
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
```bash
python test.py
```