Skip to main content

Wait and notify conveniently

Project description

WAN

Wait and notify conveniently

CI CommitLint DevContainer Release Renovate Semantic Release Coverage Release PyPI PyPI - Python Version GitHub

pdm-managed pre-commit Checked with mypy Ruff Conventional Commits Pydantic v2 Copier Serious Scaffold Python Open in Dev Containers

[!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.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wanot-0.0.3.tar.gz (258.0 kB view hashes)

Uploaded Source

Built Distribution

wanot-0.0.3-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page