Catalog PyPI
PACKAGE EXPLORERView in registry

aiobananas

PyPI

aiobananas is an async version of banana-dev

aiobananasasyncbananabanana-devclientsdk
Versions collected1
Direct dependencies3From release 4.0.1.post2
Last observed21 Oct, 11:38 UTC

README

Version 4.0.1.post2 documentation

Banana Python SDK

Getting Started

Install via pip pip3 install aiobananas

Get your API Key

Run:

import aiobananas

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"
}

async with aiobananas.Session(api_key) as banana:
    out = await banana.run(model_key, model_inputs)



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

Return type:

{
    "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:

model_out = out["modelOutputs"][0]

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
4.0.1.post220 Dec 20223

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:076b2f9f1db361ca71435d4fd3a518db2b517976350718f7474d0b8666f45d5b