Skip to main content

Hume AI Python Client

Project description

Hume AI Python Client

The Hume AI Python client makes it easy to call Hume APIs from Python applications.

To get started, sign up for a Hume account!

Requirements

Python versions between 3.8 and 3.10 are supported

Installation

pip install hume

Example Usage

Submit a new batch job

Note: Your personal API key can be found in the profile section of beta.hume.ai

from hume import HumeBatchClient

client = HumeBatchClient("<your-api-key>")
urls = ["https://tinyurl.com/hume-img"]
job = client.submit_face(urls)

print(job)
print("Running...")

result = job.await_complete()
result.download_predictions("predictions.json")

print("Predictions downloaded!")

Rehydrate a batch job from a job ID

from hume import BatchJob, HumeBatchClient

client = HumeBatchClient("<your-api-key>")

job_id = "<your-job-id>"
job = BatchJob(client, job_id)

print(job)

Documentation

Learn more about Hume's expressive communication platform on our homepage or our platform docs

See example requests and responses for all available endpoints in the Hume API Reference

Support

If you've found a bug with this client please open an issue!

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

hume-0.1.0.tar.gz (9.5 kB view hashes)

Uploaded source

Built Distribution

hume-0.1.0-py3-none-any.whl (14.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page