Skip to main content

Official Python SDK for the Nopaque API

Project description

nopaque - Python SDK for Nopaque

Official Python client for the Nopaque API.

Install

pip install nopaque

Quick start

from nopaque import Nopaque

client = Nopaque(api_key="nop_live_...")   # or set NOPAQUE_API_KEY

# Create a mapping job and wait for it to complete
job = client.mapping.create(
    name="Main IVR",
    phone_number="+441234567890",
    mapping_mode="dtmf",
)
client.mapping.start(job.id)
final = client.mapping.wait_for_complete(job.id)
print(final.status)

# List audio files with automatic pagination
for audio in client.audio.list():
    print(audio.id, audio.file_name)

client.close()

Async

import asyncio
from nopaque import AsyncNopaque

async def main():
    async with AsyncNopaque() as client:
        job = await client.mapping.get("map_abc123")
        print(job.status)

asyncio.run(main())

Features

  • Full coverage of the Nopaque REST API via API-key auth
  • Typed Pydantic v2 models for every request and response
  • Paired sync (Nopaque) and async (AsyncNopaque) clients
  • Automatic pagination for list endpoints
  • Polling helpers for long-running jobs (wait_for_complete)
  • One-call audio upload/download wrapping the presigned-URL flow
  • Method-aware retry with exponential jitter and Retry-After honor
  • Typed exception hierarchy (NotFoundError, RateLimitError, etc.)

Documentation

Full reference: https://nopaque.co.uk/docs/sdks

Authentication

Pass your API key to the client:

Nopaque(api_key="nop_live_...")

Or set the environment variable:

export NOPAQUE_API_KEY=nop_live_...

API keys are workspace-scoped and subject to per-minute rate limits based on your subscription tier. Free tier cannot use API keys.

Requirements

  • Python 3.9+
  • httpx >= 0.27, pydantic >= 2.6

License

MIT

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

nopaque-0.1.1.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

nopaque-0.1.1-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

Details for the file nopaque-0.1.1.tar.gz.

File metadata

  • Download URL: nopaque-0.1.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nopaque-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e53ad4ee23f3449b621555f3456634159398b8236f758303d877503976e949c6
MD5 12fda0e236f4e6fa7924221ba18c99bd
BLAKE2b-256 316f8b757d6db3f66263a83f9c3098084699cf4e4ca57bccb79b95895922dcb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for nopaque-0.1.1.tar.gz:

Publisher: release.yml on nopaque/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nopaque-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nopaque-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nopaque-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39f52450dc55308f167482d97ac2a00cbbc2eb48a30f4fb2d16201db3968e815
MD5 12a4a2d693ce12e25c6d9b1fca959d79
BLAKE2b-256 9fab9a0ac052b8f4552a6298ddacef36f31416dd27ac42f3528d66e24520cbc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nopaque-0.1.1-py3-none-any.whl:

Publisher: release.yml on nopaque/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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