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-Afterhonor - 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
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 nopaque-0.1.0.tar.gz.
File metadata
- Download URL: nopaque-0.1.0.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a3697ea3845405f631922b66cb13ddba7303241642705a7f9d5cd34c6376794
|
|
| MD5 |
cf36db3803a4820807859a9fd88abb73
|
|
| BLAKE2b-256 |
fb255e6ce1ada8f0fa95b1488e7cf9f0eefa598f8ddb52d45069a1136599855f
|
Provenance
The following attestation bundles were made for nopaque-0.1.0.tar.gz:
Publisher:
release.yml on nopaque/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nopaque-0.1.0.tar.gz -
Subject digest:
5a3697ea3845405f631922b66cb13ddba7303241642705a7f9d5cd34c6376794 - Sigstore transparency entry: 1340587836
- Sigstore integration time:
-
Permalink:
nopaque/python-sdk@295991a252ed250e78f7185f5845e4e3aa258984 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nopaque
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@295991a252ed250e78f7185f5845e4e3aa258984 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nopaque-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nopaque-0.1.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e11cc8322e3ba7aae651376562aa37721b375a40ce6ec08c70e4467317778a32
|
|
| MD5 |
be2c5b800fb49aa1ffda153a5917b719
|
|
| BLAKE2b-256 |
ec68abd61f10eb3667f9095704b94e84c72393b6656dbc1a12f672780c7a0b16
|
Provenance
The following attestation bundles were made for nopaque-0.1.0-py3-none-any.whl:
Publisher:
release.yml on nopaque/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nopaque-0.1.0-py3-none-any.whl -
Subject digest:
e11cc8322e3ba7aae651376562aa37721b375a40ce6ec08c70e4467317778a32 - Sigstore transparency entry: 1340587840
- Sigstore integration time:
-
Permalink:
nopaque/python-sdk@295991a252ed250e78f7185f5845e4e3aa258984 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nopaque
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@295991a252ed250e78f7185f5845e4e3aa258984 -
Trigger Event:
push
-
Statement type: