Skip to main content

facesign-sdk

A Python client for the FaceSign API.

Asynchronous (built on httpx) and typed (ships py.typed).

Requirements

  • Python 3.12+
  • httpx, pydantic (installed automatically)

Installation

pip install facesign-sdk

Authentication

The SDK resolves your API key via Credentials.default(), which checks, in order:

  1. The FACESIGN_API_KEY environment variable
  2. ~/.config/facesign/$FACESIGN_PROJECT/api_key

The base URL is resolved from the FACESIGN_API_URL environment variable or ~/.config/facesign/$FACESIGN_PROJECT/config.json (api_url), defaulting to https://api.facesign.ai. Pass it explicitly to the client below.

Quickstart

import asyncio
from facesign_sdk.client import Client, ClientOptions
from facesign_sdk.credentials import Credentials


async def main() -> None:
    client = Client(
        ClientOptions(
            creds=Credentials.default(),
            base_url="https://api.facesign.ai",
        )
    )

    result = await client.list_users()
    if result.status_code == 200 and result.data is not None:
        print(result.data)
    else:
        print(result.error or result.response_body)


asyncio.run(main())

Every method returns a ClientResponse[TData, TError] with:

  • status_code: int
  • data: TData | None — the parsed response body on success
  • error: TError | None — a parsed ErrorResponse on failure
  • response_body: str | None — the raw response body

Available methods

Method Description
list_users() List users
get_user_api_keys(user_id) List a user's API keys
create_user_api_key(user_id, body) Create a user API key
revoke_user_api_key(id, user_id) Revoke a user API key
list_avatars() List avatars
create_avatar(body) Create an avatar
get_avatar(id) Get an avatar
update_avatar(id, body) Update an avatar
delete_avatar(id) Delete an avatar
create_session(body) Create a session
start_session() Start a session
create_session_prop(id, body) Create a session prop
get_session_detail(session_id) Get session detail
list_session_utterances(session_id) List session utterances
get_demo_report(session_id) Get a demo report

Request/response models are available in facesign_sdk.client (e.g. from facesign_sdk.client import ListUsersResponse).

Development

This package is generated from the OpenAPI spec via uni. To regenerate the client, run make gen from the repository root (it writes to facesign_sdk/client.py).

To build a distribution locally:

python -m build        # produces dist/*.whl and dist/*.tar.gz

Metadata

Release files for facesign-sdk 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for facesign-sdk 0.0.3
File Size Uploaded
facesign_sdk-0.0.3.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for facesign-sdk 0.0.3
File Interpreter ABI Platform
facesign_sdk-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.0 kB

Release files / facesign_sdk-0.0.3.tar.gz

Download URL facesign_sdk-0.0.3.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
340f3a1262d7183f11f4f4d1e2a8f9412ed3d3ea841a867dc240259bf57dccba
BLAKE2b-256 checksum
How to use checksums
f4e7acca51aa80620682c8921ecea58af4c43262aaf8a4e3d0772709898b6a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / facesign_sdk-0.0.3-py3-none-any.whl

Download URL facesign_sdk-0.0.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ebaef1967bdf3f426b426094c69bc1a92dbb021ebe3c94ee9d48d77cfa1c029
BLAKE2b-256 checksum
How to use checksums
7994adb39ec60dbd8210305bd40bcb77a4e19a25e0ea3047c9838392884addc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page