NotifYourselfCLI
NotifYourselfCLI makes sending notifications to your mobile phone easy. Just follow these simple steps:
- Install NotifYourselfCLI on your sending machine
- Install the NotifYourself android app from Play Store or compile it yourself
- Find your token in the configuration page of the app
- Run
notifyourself -T <token> "Hello yourself!"to send yourself a notification
You can use this to push yourself a message when your long running simulation, nn-training or calculation is finished:
$ longRunningCalculation.sh && notifyourself "Job finished :)"
Installation
Simply use pip to install notifyourself:
$ python -m pip install notifyourself
Using source direclty
You can also just use the python script source directly; make sure you install the requests package: python -m pip install requests
Configuration
Configuration is done using the file ~/.config/notifyourself/config.ini (or %USERPROFILE%\.config\notifyourself\config.ini on Windows).
# notifYourself configuration
#
# You can define multiple targets with different tokens and use
# the -t flag to choose one. Default is the DEFAULT target.
[DEFAULT]
# Use your notifYourself app to find this token
token=
# [ANOTHER_TARGET]
# token=ANOTHER_TARGETS_TOKEN
Usage
usage: notifyourself [-h] [-T TOKEN | -t TARGET] [--config CONFIG]
title [body]
Send a notification to your phone
positional arguments:
title Notification title
body Longer message in the body of the notification
optional arguments:
-h, --help show this help message and exit
-T TOKEN, --token TOKEN
Use this token to send the message
-t TARGET, --target TARGET
Send message to this target phone specified in the
config file
--config CONFIG Configfile to use instead of default
Examples
- Send a short result with the notification
$ echo "42" > ./result
$ notifyourself "Job's finished :)" "Result: $(cat ./result)"
- Change the token
$ notifyourself -T "longlong:token-foobar" "It works :)"
- Have multiple phones preconfigured
$ cat ~/.config/notifyourself/config.ini
# notifYourself configuration
#
# You can define multiple targets with different tokens and use
# the -t flag to choose one. Default is the DEFAULT target.
[DEFAULT]
# Use your notifYourself app to find this token
token=foobarbaz1
[ANOTHER_TARGET]
token=target2token
$ notifyourself -t ANOTHER_TARGET "This shows in the other one"
Metadata
Release files for notifyourself 0.1.0
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 |
|---|---|---|---|---|
| notifyourself-0.1.0.tar.gz | 4.9 kB | Without provenance | Details for notifyourself-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notifyourself-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for notifyourself-0.1.0-py3-none-any.whl |
Total release size: 22.6 kB
Release files / notifyourself-0.1.0.tar.gz
| Download URL | notifyourself-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9599910fec8ff4bc78a2f0fc8c3a7b998ade4906368fc534b57daf42c9e55371
|
|
BLAKE2b-256 checksum How to use checksums |
c3079c457c10306a79ae57abf310f30924e1b54a53057a69a083155523e0136d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7
|
Release files / notifyourself-0.1.0-py3-none-any.whl
| Download URL | notifyourself-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b833ae00b68d9cff89cfe38b7cefbd5c3125cb72e66fd9985bb4fcb5e0bb4f53
|
|
BLAKE2b-256 checksum How to use checksums |
33b554724b5cbaf38a818c6c6b664fffe82e7ae3c80ec83d6e3cd4ef95eba264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.7
|
Security for notifyourself 0.1.0
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.