semvec/pypi-packages huggingface dataset:
banana-dev-staging 5.0.1
The banana package is a python client to interact with your Potassium servers hosted on Banana
License: MIT
Keywords: Banana client,API wrapper,Banana,SDK

# Banana Python SDK

### Getting Started

Install via pip
```bash
pip3 install banana-dev
```

If integration testing against a local Potassium server:
```bash
export BANANA_SERVER=local
```
to call `http://localhost:8000/` directly. Be sure to unset in prod!


If deploying to prod:
[Sign in / log in here](https://app.banana.dev) to get your API and Model Keys

### Run:

```python
import banana_dev as banana

# Your credentials. Can be empty strings if testing against a local server.
api_key = "demo" # YOUR_API_KEY
model_key = "carrot" # YOUR_MODEL_KEY

model_inputs = {
    # a json specific to your model. For example:
    "imageURL":  "https://demo-images-banana.s3.us-west-1.amazonaws.com/image2.jpg"
}

out = banana.run(api_key, model_key, model_inputs)
print(out)
```

Return type:
```python
{
    "id": "12345678-1234-1234-1234-123456789012", 
    "message": "success", 
    "created": 1649712752, 
    "apiVersion": "26 Nov 2021", 
    "modelOutputs": [
        {
            # a json specific to your model. In this example, the caption of the image
            "caption": "a baseball player throwing a ball"
        }
    ]
}
```

Parse the server output:
```python
model_out = out["modelOutputs"][0]
```
celeste 1.0a2
The celeste.
License: MIT
Requires Python: >=3.8, <4

[<img alt="LOGO" src="http://www.gqylpy.com/static/img/favicon.ico" height="21" width="21"/>](http://www.gqylpy.com)
[![Release](https://img.shields.io/github/release/gqylpy/celeste.svg?style=flat-square")](https://github.com/gqylpy/celeste/releases/latest)
[![Python Versions](https://img.shields.io/pypi/pyversions/celeste)](https://pypi.org/project/celeste)
[![License](https://img.shields.io/pypi/l/celeste)](https://github.com/gqylpy/celeste/blob/main/LICENSE)

# celeste

> 创建蓝图以定义数据结构，使用蓝图以验证数据。

<kbd>pip3 install celeste</kbd>

```python
from celeste import Celeste

celeste = Celeste({'name': {type: str}})
celeste.validate({'name': 'Tom'})
```