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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file wanot-0.0.3.tar.gz.

File metadata

  • Download URL: wanot-0.0.3.tar.gz
  • Upload date:
  • Size: 258.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.10.11 Linux/5.15.0-105-generic

File hashes

Hashes for wanot-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f7e250d08f2076b592cbdc0bd972bdf82abe862b391b2d5c3220f668d0adfec9
MD5 88b77dec91b2ecafa35c5ef16edad978
BLAKE2b-256 17792c8e3556c1c99d6ffc65fbf97ce5b4bdbbc7950e6f1d28df9bfe573ecd55

See more details on using hashes here.

File details

Details for the file wanot-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: wanot-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.10.11 Linux/5.15.0-105-generic

File hashes

Hashes for wanot-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b60c5ca7c18a736f46bad3e41ec75dc85a740f9c03e17a20119d0b3def95cf6c
MD5 d900561b9b4968b9643f5494ec518403
BLAKE2b-256 7cb7385b8356bfc732f63a60af08f58469b369684c01538f19489cc532fd3d76

See more details on using hashes here.

Supported by

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