This release is a pre-release and may not be stable for production use.
NQ SDK
Part of NQ suite by Inqana.
Abstract Provider Classes
Construct your provider class using base provider class nqsdk.abstract.provider.Provider and appropriate mixin classes depending on what functionality is supported by your provider.
All abstract methods must be implemented.
nqsdk.abstract.provider.Provider
Base provider class. All providers must be inherited from it.
nqsdk.abstract.provider.HealthCheckMixin
Use if your provider supports health check requests.
nqsdk.abstract.provider.BalanceCheckMixin
Use if your provider supports user's balance check requests.
nqsdk.abstract.provider.DeliveryCheckMixin
Use if your provider supports delivery check requests.
nqsdk.abstract.provider.AckCheckMixin
Use if your provider supports ack check requests.
nqsdk.abstract.provider.CallbackHandleMixin
Use if your provider supports callbacks from your API with no difference b/w nqsdk.enums.CallbackEvent.DELIVERY & nqsdk.enums.CallbackEvent.ACK events. E.g. all events are sent to the same URL & provider can distinguish them from callback's payload.
nqsdk.abstract.provider.StaticCallbackHandleMixin
Use this class if your provider only supports static callbacks, meaning that all events are sent to the same URL that is related to the provider. In this case, the provider can only extract the message external ID from the callback payload.
nqsdk.abstract.provider.DeliveryHandleMixin
Use if your provider supports nqsdk.enums.CallbackEvent.DELIVERY event callbacks sent to a specific URL provided by NQ service.
nqsdk.abstract.provider.AckHandleMixin
Use if your provider supports nqsdk.enums.CallbackEvent.ACK event callbacks sent to a specific URL provided by NQ service.
Dummy Provider
nqsdk.dummy.provider.DummyProvider is a dummy implementation of NQ Provider Interface. It does nothing but can be used for tests.
You can find it at dummy/provider.py.
Tests
Run tests locally:
./scripts/tests
License
Licensed under the terms of the Apache License, version 2.0. See LICENSE file.
Copyright (c) 2023 Inqana Ltd.
Metadata
Release files for nqsdk 1.0.0a16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nqsdk-1.0.0a16.tar.gz | 10.4 kB | Without provenance | Details for nqsdk-1.0.0a16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nqsdk-1.0.0a16-py3-none-any.whl | Python 3 | none | any | Details for nqsdk-1.0.0a16-py3-none-any.whl |
Total release size: 31.4 kB
Release files / nqsdk-1.0.0a16.tar.gz
| Download URL | nqsdk-1.0.0a16.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3751a334d55e4f5c05ac6bae4640357453614a94abbfb94efa48ac072b35a0e4
|
|
BLAKE2b-256 checksum How to use checksums |
6f0e47363167d0444aeacdcfbf3fff111fd32570c987c5cff5bdbc0a7c6a0cca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / nqsdk-1.0.0a16-py3-none-any.whl
| Download URL | nqsdk-1.0.0a16-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aaddb83f8d917c2b83d075d210f22f07424be2cb28589ef9e780613ebf366e95
|
|
BLAKE2b-256 checksum How to use checksums |
b53063e1f3307eb3d6479d0d023dc5d9fccafb3137ea28cacf53dc4256606650
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for nqsdk 1.0.0a16
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.