https://github.com/you-n-g/wan
Wait and notify conveniently
https://github.com/you-n-g/wan
Last synced: 2 months ago
JSON representation
Wait and notify conveniently
- Host: GitHub
- URL: https://github.com/you-n-g/wan
- Owner: you-n-g
- License: mit
- Created: 2020-07-06T13:28:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T04:28:24.000Z (9 months ago)
- Last Synced: 2025-03-18T09:51:36.989Z (2 months ago)
- Language: Python
- Size: 286 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Roadmap: docs/RoadMap.md
Awesome Lists containing this project
README
# WAN
Wait and notify conveniently
[](https://github.com/you-n-g/wan/actions/workflows/ci.yml)
[](https://github.com/you-n-g/wan/actions/workflows/commitlint.yml)
[](https://github.com/you-n-g/wan/actions/workflows/devcontainer.yml)
[](https://github.com/you-n-g/wan/actions/workflows/release.yml)
[](https://github.com/you-n-g/wan/actions/workflows/renovate.yml)
[](https://github.com/you-n-g/wan/actions/workflows/semantic-release.yml)
[](https://you-n-g.github.io/wan/reports/coverage)
[](https://github.com/you-n-g/wan/releases)
[](https://pypi.org/project/wanot/)
[](https://pypi.org/project/wanot/)
[](https://github.com/you-n-g/wan/blob/main/LICENSE)[](https://pdm-project.org)
[](https://github.com/pre-commit/pre-commit)
[](http://mypy-lang.org/)
[](https://github.com/astral-sh/ruff)
[](https://conventionalcommits.org)
[](https://pydantic.dev)
[](https://github.com/copier-org/copier)
[](https://serious-scaffold.github.io/ss-python)
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/you-n-g/wan)> [!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
```bash
# 1)
pip install wanot
```## config
Please config your [notifiers](https://github.com/liiight/notifiers).
`wan` will read the setting in ` ~/.dotfiles/.notifers.yaml` as the arguments for notifiers.Here is a config example of telegram
```yaml
provider: telegram
kwargs:
chat_id:
token:
```Other configs:
```yaml
log_level: DEBUG # the default level is INFO
```# Usage
## Use in python code
* Call the function in python code directly.
```pythonfrom wan import ntf; ntf('Finished')
```* Call the function in shell directly
```shell
> sleep 10 ; wan ntf sleep finished
```## 📜 License
MIT License, for more details, see the [LICENSE](https://github.com/you-n-g/wan/blob/main/LICENSE) file.