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!
Metadata
Release files for hume 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hume-0.1.2.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hume-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.9 kB
Release files / hume-0.1.2.tar.gz
| Download URL | hume-0.1.2.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3741a74fb30cac5155625ea11d71ef2f9004ad5676826af4cf65c43996b1b914
|
|
BLAKE2b-256 checksum How to use checksums |
22d56a553c8a11b31d151a8aa8bb9c0f64f8c4a9a57bb9e2008035916bd3f51d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.12 Linux/5.15.0-1016-gcp
|
Release files / hume-0.1.2-py3-none-any.whl
| Download URL | hume-0.1.2-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa83a32b0a1303bcc4c29923b5a5b5a4622c2a677dcd6b33d0a0c0e94eca8f1a
|
|
BLAKE2b-256 checksum How to use checksums |
2329bc50c74b9e3cfc534c8943983ba20e4d3ff2e763155c1b6c315bf06ad5c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.8.12 Linux/5.15.0-1016-gcp
|