Noether API client library for Python
Project description
How to install
pip install noether-api
How to use
Let's ask Noether about the following image:
# Import NoetherClient
from noether_api import NoetherClient
# Create Noether client
noether = NoetherClient(api_key="...")
image_url = "https://cdn.vox-cdn.com/thumbor/oCiqoTZlurIloHrG8O3cHqpBOiE=/241x193:2304x1644/1200x800/filters:focal(1034x301:1446x713)/cdn.vox-cdn.com/uploads/chorus_image/image/53741489/618916710.0.jpg"
# Ask
result = noether.ask(
image_url=image_url,
question="What color are the letters on the player's shirt?"
)
print(result)
The script above should print the following:
{'data': ['white'], 'success': True}
Let's ask a few more questions:
result = noether.ask(
image_url=image_url,
question="What color is the player's shirt?"
)
print(result)
{'data': ['black'], 'success': True}
result = noether.ask(
image_url=image_url,
question="What sport are they playing?"
)
print(result)
{'data': ['basketball'], 'success': True}
Visit noether.dev for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
noether_api-0.0.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for noether_api-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb86d1c0651e131c7f468472b5a0f66bfe5cf4d89f207e636bbee951e89f6e30 |
|
MD5 | ef68d99a2ce2cc10e6c434750798cc92 |
|
BLAKE2b-256 | 9eb30b791f7376a554b7a09911f7bb32eac0404cc42d614c3fc8dd9fa4ff1eec |