A simple package for sending notifications to Discord and Email in two lines.
Project description
Zonotify
Zonotify is a versatile Python package designed to provide convenient notification services for developers and users working on extensive tasks. Born out of the need for staying updated on the status of long-running tasks without the hassle of constantly checking the code, Zonotify simplifies the process by sending notifications directly through Discord or email. Whether you're running a complex data processing task, a lengthy machine learning model training, or any other time-consuming operation, Zonotify keeps you informed about the task's completion or progress updates, seamlessly integrating with just a few lines of code.
Installation
Install Zonotify easily using pip:
pip install zonotify
Usage
To use Zonotify, first import the package and set up the notifier for either Discord or email notifications or both.
from zonotify import Zonotify
# Initialize with your Discord webhook URL and gmail credentials
notifier = Zonotify(discord_webhook_url='your_discord_webhook_url', gmail_credentials={
'email': 'your_email@example.com',
'smtp_server': 'smtp.gmail.com',
'smtp_port': 587,
'username': 'your_username',
'password': 'your_password'
})
Send a notification to Discord
notifier.notify_discord('Task Completed', 'Your long-running task has finished.')
Send a notification via Email
notifier.notify_email('recipient@example.com', 'Task Status', 'Your task')
Contributing
We welcome contributions from the community! If you have suggestions, improvements, or want to report an issue, please visit our GitHub repository. Your input is valuable to us, and we look forward to seeing your ideas and contributions!
Conclusion
Zonotify aims to make the life of developers and users easier by automating the notification process for various tasks. It's a simple yet powerful tool that can be integrated into numerous workflows and systems. We hope Zonotify enhances your productivity and helps you stay updated on your tasks with minimal disruption. Happy coding!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zonotify-1.0.5.tar.gz
.
File metadata
- Download URL: zonotify-1.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccb2fe4135457ebcec58a1d3247af2c50d89383b7208890a748c2328b162fc6 |
|
MD5 | cb3f3d3199d972bc384adf9586641611 |
|
BLAKE2b-256 | 78bfd9e28d2c186ea411111f5853408c6e671d15ef654720801a3e82835d7b50 |
File details
Details for the file zonotify-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: zonotify-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e9457e7b1b9dafd2978bf05ea03ffb9298844d30a62dc2894fbc68a0032e7d |
|
MD5 | 5a9712935c84f4033c65f1937abc52ed |
|
BLAKE2b-256 | c0fa4a3e358ce04476a13c8a3b44c28c29f71327213ff092e506f359b026ef89 |