Skip to main content

nixflex

Official Python SDK for the Nixflex voice AI platform - AI phone agents, outbound campaigns, SMS and caller context.

pip install nixflex
from nixflex import Nixflex

client = Nixflex(api_key="nxf_xxx:nxfs_xxx")   # both halves, joined by a colon

call = client.calls.create(
    agent_id="agent_15d1a9ee16294087",
    to_number="+447700900123",
    prompt="Call Sam to confirm his appointment on Tuesday at 11.",
)
print(call["call_id"])

Async:

from nixflex import AsyncNixflex

async with AsyncNixflex(api_key="nxf_xxx:nxfs_xxx") as client:
    agents = await client.agents.list()
  • Every endpoint: agents, calls, campaigns, phone_numbers, callers (caller context), sms (+ sms.campaigns), keys, usage, webhooks, storage, llm, tts - the same names as the Node SDK and the CLI.
  • Retries: a 429 is retried once honouring Retry-After; network failures retry once; 5xx retries only GET/DELETE. A POST is never blind-retried - a call is never dialled twice.
  • Typed errors: NixflexAuthenticationError, NixflexRateLimitError (.retry_after_seconds), NixflexNotFoundError, ...
  • verify_webhook_signature(raw_body, header, key_secret) for signed webhooks.
  • Python 3.9+, one dependency (httpx).

Docs: https://docs.nixflex.com/sdks/python

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nixflex-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nixflex-0.1.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file nixflex-0.1.0.tar.gz.

File metadata

  • Download URL: nixflex-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for nixflex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d527fc0c2b3c7265d3a8907506b8478fc6ae78b296c3f0071ebfdbb31bba4aed
MD5 1873bc1241780617fcd980d25faf4e2e
BLAKE2b-256 cdc151e406ba950eaa7a3db6812aa513acb946a46cfe3be28cd1414d629da37c

See more details on using hashes here.

File details

Details for the file nixflex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nixflex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for nixflex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf97407a0486b6e9cb0069a31192013c4dc307600efcc394c71d6f91ae0a05ae
MD5 f7fca9255d2da28add85cbbb3583599b
BLAKE2b-256 47f0d6f7f42ae7bf40d1d606801ee13b187da47a27eabff617c6dc7f44e1ef78

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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