Metadata-Version: 2.1
Name: banana-dev
Version: 6.2.0
Summary: The banana package is a python client to interact with your machine learning models hosted on Banana
Home-page: https://www.banana.dev
Author: Erik Dunteman
Author-email: erik@banana.dev
License: MIT
Keywords: Banana client,API wrapper,Banana,SDK
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
Requires-Dist: requests <3.0.0,>=2.26.0

# 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.listProjects()
print('list',projects,status)

project, status = api.getProject(projects["results"][0]["id"])
print('get',project,status)

updatedProject, status = api.updateProject(projects["results"][0]["id"], {"maxReplicas": 2})
print('update',updatedProject,status)
```

Run it
```bash
python test.py
```
