Skip to main content

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: 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)

Uploaded Source

Built Distribution

noether_api-0.0.5-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page