hume-python-sdk icon indicating copy to clipboard operation
hume-python-sdk copied to clipboard

(break): release beta `v1` SDK

Open fern-support opened this issue 1 year ago • 0 comments

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",
            ),
        )
    ],
)

fern-support avatar Jun 28 '24 07:06 fern-support