Skip to main content

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 agent and application

Initialize SDK

from signalsdk.signal_app import SignalApp
app = SignalApp()
app.initialize(onConfigUpdated, onEventReceived, onCommandReceived)

Provide a callback method to get notified when a configuration change is requested

def onConfigUpdated(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 onEventReceived(self, event):
  • Will be triggered when a new event received from application's subscribed topic

Provide a callback method to get notified when an command is received from event bus

def onCommandReceived(self, command):
  • Will be triggered when a new command received from device agent

Call next to forward the event to the next edgesignal application which has sdk integrated, if next_app_id(optional) is specified, it forwards the event to the specified application

self.app.next(event: object, next_app_id)

Call next to forward the event to the next node-red application running on node-red.

self.app.nextNode(event: object)

Sample usage

Consider adding these two params to the application detail Settings Settings

config object will be reveived as below

{
    message: 'some text message',
    param2: 101
}

Metadata

Release files for signal-application-python-sdk 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for signal-application-python-sdk 3.2.2
File Size Uploaded
signal_application_python_sdk-3.2.2.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for signal-application-python-sdk 3.2.2
File Interpreter ABI Platform
signal_application_python_sdk-3.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / signal_application_python_sdk-3.2.2.tar.gz

Download URL signal_application_python_sdk-3.2.2.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a27aff910aa9eb70f4fd9138df92b40dba8b97c1a75f24aab51978a39205658
BLAKE2b-256 checksum
How to use checksums
04067c3f648576a103af7156d54148c2b5077f787c8debdfe8fa28b399b2d838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / signal_application_python_sdk-3.2.2-py3-none-any.whl

Download URL signal_application_python_sdk-3.2.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47b2ad1bedfb48f27b511ff6f704250b19a483d4049555d9be42928a0dd2d009
BLAKE2b-256 checksum
How to use checksums
e5f58a2dcf5d03ee77e102f23cc9e2db253ef8f06f28220921cd77b21de09efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

3.2.2 This release

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page