hume-python-sdk
hume-python-sdk copied to clipboard
(break): release beta `v1` SDK
In this PR, the Hume Python SDK is regenerated with Fern's python generator. The new SDK provides a single top level client that exports APIs across expressionMeasurement, empathicVoice and customModels.
Usage
Below is an example of how to import the new SDK.
from hume.client import HumeClient
client = HumeClient(api_key="...")
client.custom_models.files.create_files(
request=[
FileWithAttributesInput(
file=FileInput(
name="name",
hume_storage=True,
data_type="data_type",
),
)
],
)
Legacy
from hume.legacy import HumeStreamClient
from hume.legacy.models.config import FaceConfig
client = Hume(api_key="...")
client.custom_models.files.create_files(
request=[
FileWithAttributesInput(
file=FileInput(
name="name",
hume_storage=True,
data_type="data_type",
),
)
],
)