PushNotif
Want to get notified on your phone when your code has executed? This is a simple tool to generate a Push Notification to your IFTTT app.
QuickStart
Setting Up IFTTT Applet
- Sign up for an IFTTT account.
- Go to the Create section.
- Click on Add for If This and choose "Webhooks".
- Choose the first option for Receive a web request.
- Give this event any name, for example, "Notifier", and click on Create triger.
- Click on Add for Then That and choose "Notifications".
- Click on the first option for Send a notification from the IFTTT app.
- Type a message that you want to accompany your notification. Here, you can also add an option for sending variables from runtime when you run code. Click on Add ingredient and choose any of the three Value variables. You can also use the EventName to add the name of the event in the notification and OccurredAt to get the time when the event occurred.
For example,
Message Syntax
{{EventName}} : Your Code has executed with message {{Value1}} at {{OccurredAt}}
Message Output
Notifier : Your Code has executed with message "Model Finished Training" at September 9, 2021 at 07:51PM
- Click on Continue. Write a Title for your Applet and click on Finish.
- Go to the Webhook Documentations to get your key. You will use this key to intialize your code.
Execution
pip install pushnotif
Run the following with your event URL that you got when setting up IFTTT in step 10.
from pushnotif import PushNotif
handler = PushNotif(key = <your_key>, event = <your_event>)
...
model.fit(...)
...
handler.send("Model Trained")
You can put the handler.send() method at the end of any cell you want to be notified for after execution.
Metadata
Release files for pushnotif 0.0.1
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 |
|---|---|---|---|---|
| pushnotif-0.0.1.tar.gz | 3.4 kB | Without provenance | Details for pushnotif-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pushnotif-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pushnotif-0.0.1-py3-none-any.whl |
Total release size: 7.0 kB
Release files / pushnotif-0.0.1.tar.gz
| Download URL | pushnotif-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db5d99ac8701007eb5133211ea8d43481c04a3a40263d78f91d924aea579df1a
|
|
BLAKE2b-256 checksum How to use checksums |
c98c8afeb4b35846128a99bdbd733683b7f3635d28d8ec202ffdb1bdea211a6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / pushnotif-0.0.1-py3-none-any.whl
| Download URL | pushnotif-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba7659fd5622f3d537c25a71b983962ac48e5a7ec48a0c7c1a084e1bf73b11e5
|
|
BLAKE2b-256 checksum How to use checksums |
03872249b6eac7f4f7952edf3a1351ce103ba94e5ed20851180c5494a2538517
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for pushnotif 0.0.1
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.