Skip to main content

Sends a telegram message to you when your code finish running

Project description

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Toaster

Sends you a telegram message whenever your code finishes executing

Table of Contents

Getting Started

To set up Toaster, simply follow the installation and usage example.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Telegram account (Create one if you do not have it)
  • Python 3

Installation

  1. Install via pip
pip install pytoaster

Usage

Step 1. Get your telegram ID from @FreshToasterBot on Telegram

Start Convo

Step 2. Configure toaster using set_id().

from toaster import toast, set_id

set_id(<your_telegram_id>)

Step 3. Add @toast above functions that you want to be notified upon completion.

@toast
def test_func(a,b):
    return 'Return {} and {}'.format(str(a),str(b))

Step 4. You'll be notified when your function finishes executing.

Sample Response

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

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

pytoaster-0.0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pytoaster-0.0.1-py3-none-any.whl (4.9 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