NQ SDK
Project description
NQ SDK
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.CallbackMixin
Use if your provider supports callbacks from your API with no difference b/w message delivered
& message ack
events. E.g. all events are sent to the same URL & provider can distinguish them from callback's payload.
nqsdk.abstract.provider.DeliveryHandleMixin
Use if your provider supports message delivered
event callbacks sent to a specific URL provided by NQ service.
nqsdk.abstract.provider.AckHandleMixin
Use if your provider supports message 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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file nqsdk-1.0.0a7.tar.gz
.
File metadata
- Download URL: nqsdk-1.0.0a7.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3a9143e4333732957179739d29f44d12abed48db2b777195530668eb6b53c5 |
|
MD5 | ca5033c377afa9c53c73977876adc34e |
|
BLAKE2b-256 | d59929749f798648a84d7c6a0001002fbabbb3b9a4a92bf30f52e874b2840af2 |
File details
Details for the file nqsdk-1.0.0a7-py3-none-any.whl
.
File metadata
- Download URL: nqsdk-1.0.0a7-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf5b0582dca665dfd59e8b7c2ffd3ab3b01308d30e54328045a7899cf660f452 |
|
MD5 | d48bbc358e1f37860bbf12ebc9d6d2db |
|
BLAKE2b-256 | 4491bb1b2c67a9ea108442ad15d5183e99f5c56f07280ff9a6c3ec5af2a01d49 |