nsupp REST SDK — Python
Typed, dependency-free client for the nsupp /cof/v1 REST API (Python 3.8+, stdlib only).
Handles HTTP Basic auth + X-Cof-Tier, unwraps the { error, data } envelope, raises NsuppError on failures, and gives you a website-scoped helper. Every endpoint is reachable — common ones as methods, the rest via request().
Install
pip install nsupp-rest
Quickstart
from nsupp import Client, NsuppError
nsupp = Client(
identifier="nsupp_pk_…",
secret="…",
tier="plugin",
website_id="8f3c1d…",
# base_url="https://api.nsupp.com/cof",
)
site = nsupp.website()
website = site.get()
convos = site.list_conversations(page=1)
site.send_message("session_1", "Hi 👋 — how can we help?")
# Connected-channel delivering replies (ticket / mail / marketplace / review):
site.email_reply("session_1", "Thanks — your order ships today.")
site.marketplace_reply("session_2", "It ships within 24 hours.")
site.review_reply("session_3", "Thank you for the feedback!")
try:
site.get_conversation("missing")
except NsuppError as e:
print(e.status, e.code, str(e))
# Escape hatch — any endpoint:
site.request("POST", "/helpdesk/article/a_1/alternate", body={"alternate_article_id": "a_2"})
Run the self-test: python3 -m unittest discover -s tests.
License
Licensed under the Apache License 2.0.
"nsupp" and the nsupp logo are trademarks of Asindie, Inc. The license grants no trademark rights — see the trademark policy for what use is permitted.
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 nsupp_rest-0.1.0.tar.gz.
File metadata
- Download URL: nsupp_rest-0.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c90b6762bfcfc1b911154ba7b2a8d561bfc53c1f96eb890c0a4a4a40752a3237
|
|
| MD5 |
e4e10d249bb39bd862fb39189dcbd067
|
|
| BLAKE2b-256 |
38475c1b2b67c8e16d0426320da924a8f836881cb25463c554cc38dac4d3e34b
|
Provenance
The following attestation bundles were made for nsupp_rest-0.1.0.tar.gz:
Publisher:
publish-sdks.yml on asindie-dev/nsupp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nsupp_rest-0.1.0.tar.gz -
Subject digest:
c90b6762bfcfc1b911154ba7b2a8d561bfc53c1f96eb890c0a4a4a40752a3237 - Sigstore transparency entry: 2703781168
- Sigstore integration time:
-
Permalink:
asindie-dev/nsupp@8b4069415281ceb0d729a25deb5e8a1caf1fc261 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asindie-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@8b4069415281ceb0d729a25deb5e8a1caf1fc261 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nsupp_rest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nsupp_rest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb55cc630b54ff7836bdc9f17e3af68c5fd52936be71d68f1379113fd9a4eea6
|
|
| MD5 |
ed6e71009c1ba569168b8269de887276
|
|
| BLAKE2b-256 |
8d6efa5c84b21e611c935ad5b34db6a480dae343d4458cbf3197caf7a98baebe
|
Provenance
The following attestation bundles were made for nsupp_rest-0.1.0-py3-none-any.whl:
Publisher:
publish-sdks.yml on asindie-dev/nsupp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nsupp_rest-0.1.0-py3-none-any.whl -
Subject digest:
bb55cc630b54ff7836bdc9f17e3af68c5fd52936be71d68f1379113fd9a4eea6 - Sigstore transparency entry: 2703781894
- Sigstore integration time:
-
Permalink:
asindie-dev/nsupp@8b4069415281ceb0d729a25deb5e8a1caf1fc261 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/asindie-dev
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@8b4069415281ceb0d729a25deb5e8a1caf1fc261 -
Trigger Event:
push
-
Statement type: