semvec/pypi-packages huggingface dataset:
uselessapi 1.2.1
Python wrapper for the Useless API.
License: MIT
Requires Python: >=3.7
Keywords: API,API-wrapper,Wrapper

# uselessapi.py
Simple async Python API wrapper for Useless API.<br>

## examples
```py
from uselessapi import UselessAPI
api = UselessAPI()

# initiate the API first before using.
await api.initiate()

# Simple API call (JSON format)
response = await api.encode(text="Hello, World!")
print(response.binary)

# API call that returns an image
image = await api.implode(image="https://docs.wand-py.org/en/0.6.3/_images/inca_tern.jpg", amount=2.0)
with open("implode.png", "wb") as f:
    f.write(image.blob)
    f.close()

# close API after using
await api.close()
```