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.3.tar.gz (35.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.3-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nopaque-0.1.3.tar.gz
  • Upload date:
  • Size: 35.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.3.tar.gz
Algorithm Hash digest
SHA256 83502e2d00aacbf9735f52072b2e43f5f1941b73c91804225298556a06cea863
MD5 a406294a8307e2e1d1e41506afb6797b
BLAKE2b-256 f3ae468b58fce7ba891312d8e67a53c5c973258e11f90ea453442d678ba2c7e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nopaque-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: nopaque-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4494412031f565366f4f8644c9c5def7b8a758a00465c7f977979f084d6eaac7
MD5 93370740c5acb1efaae042dd359c7fcb
BLAKE2b-256 f88876b428c3953614a37f79d393aad1789efbd7e4bebc2d93825a8ba545f3a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for nopaque-0.1.3-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