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.6.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file noether_api-0.0.6.tar.gz
.
File metadata
- Download URL: noether_api-0.0.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5618b29baa5dfcb0f53f915783db67f15d45b8f892077dcaf6b1a7d002f6d65 |
|
MD5 | 5692e5c06f06b5e1e06e00fe7bb6c7be |
|
BLAKE2b-256 | 50638ad5d207746c8e34d1b1b091098db406459d24345c44a7c7ac049f94d44a |
File details
Details for the file noether_api-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: noether_api-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aade12b50bffe8a14e59ae3bc2749cd25ed88b4b6234bdbf3aeeafe4376e52cd |
|
MD5 | ff9d2f41c24672291bc2588c857b683f |
|
BLAKE2b-256 | f8efb93375cbc8c0cf2a3821083dab0eea26cb65b113bf6bed35679c8aa30a91 |