Skip to main content

Python SDK for Nexa APIs

Project description

Nexa Python SDK

A modern, Pythonic SDK for the Nexa API. Effortlessly integrate Nexa's advanced voice and agent automation into your applications.

PyPI version License


Overview

The Nexa Python SDK provides a simple, intuitive interface for interacting with the Nexa API. It supports agent management, call automation, and more, using modern Python best practices.


Installation

Install from PyPI:

pip install nexa-sdk

Or from source:

pip install .

Authentication

Authenticate using your Nexa API key (JWT token). The SDK uses this token for both Bearer and cookie authentication. The API base URL is set internally; you do not need to configure it.


Quick Start

from nexa_ai import NexaClient

# Initialize the client with your API key (JWT token)
nexa_client = NexaClient("your_api_key")

# List agents
agents = nexa_client.agent.list_agents()
print(agents)

# Make a call (implement your own parameters as needed)
# call = nexa_client.call.create_call(data, org_id)
# print(call)

Usage

Agents

# List all agents
agents = nexa_client.agent.list_agents()

# Get a specific agent (provide agent_id and org_id)
# agent = nexa_client.agent.get_agent(agent_id, org_id)

# Create a new agent
# agent = nexa_client.agent.create_agent(data, org_id)

Calls

# List all calls (provide org_id)
calls = nexa_client.call.list_calls(org_id="your_org_id")

# Get a specific call
# call = nexa_client.call.get_call(call_id)

# Create a new call
# call = nexa_client.call.create_call(data, org_id)

API Reference


Contributing

Pull requests are welcome! Please open an issue or discussion first for major changes.

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

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

Source Distribution

nexa_sdk-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

nexa_sdk-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nexa_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for nexa_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1949b608f9a8e748d00039d9e9e673f93211c3a34940d238f079e016a3db508
MD5 aed651e1bcbec3138d2f89ad332fac5c
BLAKE2b-256 0c591513ff61e73bab16e854cc87822c853a9580852e4a65fb37b8b1f27b1a5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nexa_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for nexa_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34421db1b66d94574748f9d835e4b964a4a9d0fc55cb084591b95111466ab753
MD5 fbaf1179044170bfc73db89df6f0c07a
BLAKE2b-256 fec3f98fba3d4741e53320ecf216c2cdcd68c9f93a80c4435b7e2fc16d18bb55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page