signal application services
Project description
signal-application-python-sdk
Setup
Add Signal-Application-SDK as a dependency to requirements.txt
signal-application-python-sdk==<latest>
Install dependencies
python setup.py install
Entry point for Signal Application SDK
- Creates a bi-directional communication between device shadow and application
Initialize SDK
self.app = SignalApp()
self.app.initialize(self.onConfigChange, self.onEvent)
Provide a callback method to get notified when a configuration change is requested
def onConfigChange(self, config):
- Will be triggered when a new configuration change requested from the cloud
Provide a callback method to get notified when an event is received from event bus
def onEvent(self, event):
- Will be triggered when a new event received from application's subscribed topic
Call next to forward the event to the next node
self.app.next(event: object)
Call reportConfigurationChange to report when configuration change is applied
self.app.reportConfigurationChange(config: object)
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
Close
Hashes for signal-application-python-sdk-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50cf54f49c2fb628fd4c71a8a00566f28aa47855c24eeb2d68373fff9c22a047 |
|
MD5 | a268a786908fe443c0e3450e4aa7e93e |
|
BLAKE2b-256 | 836d8a769736eddc3f8f96718711c82757607e421578b7ba626deae2407cafc9 |
Close
Hashes for signal_application_python_sdk-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b806c0b43092baf07b0a38f7873d27f45d0dd11a19e268866216c1cda8b8825 |
|
MD5 | 2bb6ed25422dbe7de7d7d0199d4e63e5 |
|
BLAKE2b-256 | 81646b60126a8dbd747a328771b1e6ccabd19aca3e9bbc550396f2412d45900a |