Skip to main content

remind-plugin-base

Base package for Remind plugins.

Plugin authors depend on this to create Remind integrations. Provides the BasePlugin ABC and Reminder model.

Usage

from pathlib import Path
from remind_plugin_base import BasePlugin, Reminder


class MyPlugin(BasePlugin):
    name = "my-plugin"
    display_name = "My Plugin"
    version = "0.1.0"

    def setup(self, config_dir: Path) -> None:
        # Interactive setup wizard
        pass

    def teardown(self, config_dir: Path) -> None:
        # Cleanup
        pass

    def is_configured(self, config_dir: Path) -> bool:
        # Check if configured
        return (config_dir / "config.json").exists()

    def status(self, config_dir: Path) -> str:
        # Status for `remind doctor`
        return "✓ Configured" if self.is_configured(config_dir) else "Not configured"

    def on_reminder_due(self, reminder: Reminder, config_dir: Path) -> None:
        # Called when a reminder is due
        print(f"Reminder due: {reminder.text}")

Declare your plugin in your package's pyproject.toml:

[project.entry-points."remind.plugins"]
my-plugin = "my_plugin_package:MyPlugin"

License

MIT

Metadata

Release files for remind-plugin-base 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for remind-plugin-base 0.1.0
File Size Uploaded
remind_plugin_base-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for remind-plugin-base 0.1.0
File Interpreter ABI Platform
remind_plugin_base-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / remind_plugin_base-0.1.0.tar.gz

Download URL remind_plugin_base-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
137cfddc4f919f417cd01e4ccb28b329b0f9e1a678e010a97281554cb60ae29a
BLAKE2b-256 checksum
How to use checksums
3ad5fb87d4fb9f094eef128587b86a3539597d61fa592a0b3461b3261cd59038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / remind_plugin_base-0.1.0-py3-none-any.whl

Download URL remind_plugin_base-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
990e9908ccf77ab6aeef599ecf2b2fc70f0b258ffd9ac73ff3b88a1e8fa792d1
BLAKE2b-256 checksum
How to use checksums
355c6ddd9e2f0e6a8c65f3e422b14a617d2505a0915e8876dafd65c6b26662fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page