Skip to main content

An async Python schedule reminders with custom event triggers on due time.

Project description

reminder.py

PyPI - Version Python Versions

A Python library to manage scheduled reminders, events, and callbacks, designed for asynchronous operations.

Installation

To install reminder.py, use the appropriate command for your operating system:

For Windows:

py -3 -m pip install --upgrade reminder.py

For macOS/Linux:

python3 -m pip install --upgrade reminder.py

Quick Start

Here’s a simple example to get you started with reminder.py:

from reminder import Reminder, Schedule
from datetime import timedelta

reminder = Reminder()

reminder.add_schedule('Task 1: Timer for 1 minute', timedelta(minutes=1))
reminder.add_schedule('Task 2: Reminder in 30 seconds', timedelta(seconds=30), callback='task_reminder')
reminder.add_schedule('Task 3: Another reminder in 30 seconds', timedelta(seconds=30), callback='task_reminder')

@reminder.event
async def on_initiate():
    print(f"Reminder has been initiated")
    
@reminder.event
async def on_schedule(schedule: Schedule):
    print(f"Triggered schedule: {schedule.title}")

@reminder.event
async def on_task_reminder(schedule: Schedule):
    print(f"Custom reminder callback triggered for schedule: {schedule.title}")

reminder.run()

Documentation

For more detailed instructions, visit the reminder.py Documentation.

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

reminder_py-1.0.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

reminder.py-1.0.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file reminder_py-1.0.2.tar.gz.

File metadata

  • Download URL: reminder_py-1.0.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for reminder_py-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8baab045131e5366c85f96eed9a630527587ac512e3fdcf8e41f71b88e05b8f9
MD5 ab9e9c017e5dea97798f0eb6ccadbe8f
BLAKE2b-256 e55fbe9e3509b443646e5802ae998fcb9cf85de0ffff75bd76b766215a0417a1

See more details on using hashes here.

File details

Details for the file reminder.py-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: reminder.py-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for reminder.py-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e16792e06c261896dae236828d0a936d411b95a994cb0abc9edb9db7fc2dead
MD5 70e726c1015152759f11cfb1d0c1af11
BLAKE2b-256 5562a3cb7e1b3881eba6337af36391dbbbcd7109160245eb5259ece86010a1f7

See more details on using hashes here.

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