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.
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)
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexa_sdk-0.1.1.tar.gz.
File metadata
- Download URL: nexa_sdk-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95ee7e4f1ff434777f0425f0a12ba1f7e347bdc4987dbcb26e451e447e060263
|
|
| MD5 |
fd79694b99680e34f1d4f44a616982d9
|
|
| BLAKE2b-256 |
4f645848bd1201494e68d5c3c708e9980a0a878ebd175bd143fb26c9ac8dff91
|
File details
Details for the file nexa_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nexa_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a5ddf97a586462ecbd21c40c24817469ab94fe2d192727e8a2e3bd23bedb695
|
|
| MD5 |
0966cde06cd8a13230933f6b170079d6
|
|
| BLAKE2b-256 |
050209d3f088299b10d2d95ee8680225e5afd2e92212f29379b412224d998f78
|