TRIGGERcmd Python Package
For the full TRIGGERcmd agent, visit https://triggercmd.com.
Use this package to listen for triggers sent to a computer in your TRIGGERcmd account.
Send triggers with Amazon Alexa, Google Assistant, IFTTT, Zapier, Smart Things, etc. See this page for more ways.
Usage:
import json
from triggercmd import agent
computer_id = (your triggercmd computer id)
token = (your triggercmd token)
def my_function(msg):
print(msg)
message = json.loads(msg)
print("Received this trigger:", message['trigger'], "and these parameters:", message['params'])
agent.connect(computer_id, token, my_function)
Example output:
Connected
{"trigger":"Notepad","id":"13123391234567891acbf124","params":"on"}
Received this trigger: Notepad and these parameters: on
{"trigger":"Calculator","id":"13123391234567891acbf123","params":"on"}
Received this trigger: Calculator and these parameters: on
{"trigger":"Calculator","id":"13123391234567891acbf123","params":"off"}
Received this trigger: Calculator and these parameters: off
Based on this project:
https://github.com/gilsdav/python_sails_websocket_client/tree/master
Metadata
Release files for triggercmd 0.0.36
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 |
|---|---|---|---|---|
| triggercmd-0.0.36.tar.gz | 17.5 kB | Without provenance | Details for triggercmd-0.0.36.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| triggercmd-0.0.36-py3-none-any.whl | Python 3 | none | any | Details for triggercmd-0.0.36-py3-none-any.whl |
Total release size: 35.6 kB
Release files / triggercmd-0.0.36.tar.gz
| Download URL | triggercmd-0.0.36.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
932e94d22028c5031ec21fa007b8011bad4fbb152738e35ef768a8ea2ca01905
|
|
BLAKE2b-256 checksum How to use checksums |
6a9291794ea95d7a37c2c8f2a416113cd72fe936d15f7f245bc27c48a116e851
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / triggercmd-0.0.36-py3-none-any.whl
| Download URL | triggercmd-0.0.36-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e54b6f27f4884a240d23e86a68d04e6017cb87614ea341ce5b4d36c4cec874fe
|
|
BLAKE2b-256 checksum How to use checksums |
ea3458b7ffc1574ce5d25326a361742a8275e2ef7cc63cf51f66afc4e869beda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for triggercmd 0.0.36
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.