WAN
Wait and notify conveniently
[!IMPORTANT] WAN is in the Beta phase. Changes and potential instability should be anticipated. Any feedback, comments, suggestions and contributions are welcome!
Wait And Notify(WAN)
This package is under development. We will release it soon in the future.
Installation
You can install wan with one of the following command
# 1)
# pip install wan # TODO: upload this to pip source
# 2)
pip install git+https://github.com/you-n-g/wan.git@master
# 3)
python setup.py install
# 4)
python setup.py develop # It is recommended if you want to develop wan
config
Please config your notifiers.
wan will read the setting in ~/.dotfiles/.notifers.yaml as the arguments for notifiers.
Here is a config example of telegram
provider: telegram
kwargs:
chat_id: <Your Chat id from `@myidbot` by sending `/getid`>
token: <Your token from `@BotFather` by sending `/newbot`>
Other configs:
log_level: DEBUG # the default level is INFO
Usage
Use in python code
- Call the function in python code directly.
<Your code which takes a lot of time>
from wan import ntf; ntf('Finished')
- Call the function in shell directly
> sleep 10 ; wan ntf sleep finished
<<<<<<< HEAD
📜 License
MIT License, for more details, see the LICENSE file.
400ad4d (Init from serious-scaffold-python.)
Metadata
Release files for wanot 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wanot-0.0.3.tar.gz | 258.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wanot-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 267.3 kB
Release files / wanot-0.0.3.tar.gz
| Download URL | wanot-0.0.3.tar.gz |
|---|---|
| Size | 258.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7e250d08f2076b592cbdc0bd972bdf82abe862b391b2d5c3220f668d0adfec9
|
|
BLAKE2b-256 checksum How to use checksums |
17792c8e3556c1c99d6ffc65fbf97ce5b4bdbbc7950e6f1d28df9bfe573ecd55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.16.1 CPython/3.10.11 Linux/5.15.0-105-generic
|
Release files / wanot-0.0.3-py3-none-any.whl
| Download URL | wanot-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b60c5ca7c18a736f46bad3e41ec75dc85a740f9c03e17a20119d0b3def95cf6c
|
|
BLAKE2b-256 checksum How to use checksums |
7cb7385b8356bfc732f63a60af08f58469b369684c01538f19489cc532fd3d76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.16.1 CPython/3.10.11 Linux/5.15.0-105-generic
|