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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3741a74fb30cac5155625ea11d71ef2f9004ad5676826af4cf65c43996b1b914
|
|
| MD5 |
7bc24b2587161b9b64ccd7802059134e
|
|
| BLAKE2b-256 |
22d56a553c8a11b31d151a8aa8bb9c0f64f8c4a9a57bb9e2008035916bd3f51d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa83a32b0a1303bcc4c29923b5a5b5a4622c2a677dcd6b33d0a0c0e94eca8f1a
|
|
| MD5 |
2b2a2409a23392aaddfb5c2649008c55
|
|
| BLAKE2b-256 |
2329bc50c74b9e3cfc534c8943983ba20e4d3ff2e763155c1b6c315bf06ad5c7
|