Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nqsdk-1.0.0a6.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

nqsdk-1.0.0a6-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file nqsdk-1.0.0a6.tar.gz.

File metadata

  • Download URL: nqsdk-1.0.0a6.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

Hashes for nqsdk-1.0.0a6.tar.gz
Algorithm Hash digest
SHA256 9ec44f72bbd963e84c90f896ec1c61c97c59c521be896587ce2cb4ac8aadb67e
MD5 f128e874ffacc488a84e6a6399d0b3f9
BLAKE2b-256 9570daa104c5cc39802090005f8cfb98badf8a2225994a8c236ba293f9a00b68

See more details on using hashes here.

File details

Details for the file nqsdk-1.0.0a6-py3-none-any.whl.

File metadata

  • Download URL: nqsdk-1.0.0a6-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for nqsdk-1.0.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 8ce53be041e9e7743c2d241481278933be67687dbc9ab8547b6c3fb900e2fb15
MD5 46370e6eb007d69b26844958a82a39ed
BLAKE2b-256 993b2096ec89e2c49bf8628eab30b269f30a9ddce7ed303a13226be8ff9c931a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page