Skip to main content

Nexacon Python SDK

Python SDK for Nexacon API - Auto Token Generation with nx_token Authentication

Installation

pip install nexacon-sdk

Quick Start

Initialize client with API keys and username. The SDK automatically generates the nx_token when needed:

from nexacon import NexaconClient

# Initialize client with API keys and username
client = NexaconClient(
    api_key="your_api_key",
    secret_key="your_secret_key",
    username="+255788811191",  # Phone number or email - used for auto token generation
    base_url="https://nxservice.quantumvision-tech.com/api/v1.0"
)

# Send message - token is auto-generated automatically
client.messaging.send(to="+255788811191", message="Hello!")

# Initiate call
call_url = client.calls.initiate_call(
    to="+255788811191",
    call_type="video",
    room="my-room"
)

# Register device for push notifications
client.devices.register(
    fcm_token="device_fcm_token",
    platform="android"
)

# Manage rooms (group chats)
rooms = client.rooms.list()
new_room = client.rooms.create(title="My Group", description="Group chat")
client.rooms.add_member(new_room["name"], nxid="user_nxid")

# Check user presence
presence = client.presence.get(user="user_nxid")

No need to call auth separately - the SDK handles token generation automatically on first API call!

Documentation

Full documentation is available at https://nexacon-python-sdk.readthedocs.io/

Features

  • External Authentication: nx_token-based authentication (no username/password)
  • Messaging: Send/receive messages, manage contacts
  • Calls: Initiate audio/video calls, group calls
  • Devices: Register devices for push notifications
  • Rooms: Create and manage group chat rooms
  • Presence: Check user online status

License

MIT License - see LICENSE file for details.

Metadata

Release files for nexacon-sdk 1.1.1

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

Source distribution (sdist)

Source distribution for nexacon-sdk 1.1.1
File Size Uploaded Provenance Actions
nexacon_sdk-1.1.1.tar.gz 12.7 kB Without provenance Details for nexacon_sdk-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexacon-sdk 1.1.1
File Interpreter ABI Platform Actions
nexacon_sdk-1.1.1-py3-none-any.whl Python 3 none any Details for nexacon_sdk-1.1.1-py3-none-any.whl

Total release size: 23.1 kB

Release files / nexacon_sdk-1.1.1.tar.gz

Download URL nexacon_sdk-1.1.1.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
63736c482131e51cca99851f051cda545a1326e06414d930156399db3be53809
BLAKE2b-256 checksum
How to use checksums
70b3cf956cf3498aee95c23299a0a0c8b755c3eea1f7da956b2e64e1a7db9874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / nexacon_sdk-1.1.1-py3-none-any.whl

Download URL nexacon_sdk-1.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f32ccc1c665827bfa2b3923fe0ab914f3b579990c25c28bca9bcab683ccde70
BLAKE2b-256 checksum
How to use checksums
0ff5c681c6014459bc73884d9ce6732ba211e0c963153d91b4f778f7686cec2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for nexacon-sdk 1.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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