Skip to main content

Hume AI Python Client

Project description

Hume AI Python SDK

The Hume AI Python SDK 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 HumeBatchClient

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

job_id = "<your-job-id>"
job = client.get_job(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 SDK 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.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

hume-0.1.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file hume-0.1.2.tar.gz.

File metadata

  • Download URL: hume-0.1.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.12 Linux/5.15.0-1016-gcp

File hashes

Hashes for hume-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3741a74fb30cac5155625ea11d71ef2f9004ad5676826af4cf65c43996b1b914
MD5 7bc24b2587161b9b64ccd7802059134e
BLAKE2b-256 22d56a553c8a11b31d151a8aa8bb9c0f64f8c4a9a57bb9e2008035916bd3f51d

See more details on using hashes here.

File details

Details for the file hume-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hume-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.12 Linux/5.15.0-1016-gcp

File hashes

Hashes for hume-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa83a32b0a1303bcc4c29923b5a5b5a4622c2a677dcd6b33d0a0c0e94eca8f1a
MD5 2b2a2409a23392aaddfb5c2649008c55
BLAKE2b-256 2329bc50c74b9e3cfc534c8943983ba20e4d3ff2e763155c1b6c315bf06ad5c7

See more details on using hashes here.

Supported by

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