Skip to main content

Composable Python backend kit for reminder services.

Project description

reminder-backend-kit

리마인더 백엔드에서 자주 쓰는 모듈(Teams 발송, EventBridge Scheduler)을 하나로 묶은 통합 패키지입니다.

Installation

pip install reminder-backend-kit

Usage

from reminder_backend_kit import (
    TeamsSender,
    TeamsSenderConfig,
    ReminderScheduler,
    SchedulerConfig,
    ReminderScheduleInput,
)

teams = TeamsSender(
    TeamsSenderConfig(
        teams_api_base_url="https://m365.example.com/users",
        teams_domain="example.com",
    )
)

scheduler = ReminderScheduler(
    SchedulerConfig(
        alert_lambda_arn="arn:aws:lambda:ap-northeast-2:123456789012:function:dept-reminder-alert",
        scheduler_role_arn="arn:aws:iam::123456789012:role/dept-reminder-scheduler-role",
    )
)

teams.send_reminder(
    user_id="20240001",
    title="회의 준비",
    scheduled_at="2026-05-19T01:00:00Z",
)

scheduler.create_schedule(
    ReminderScheduleInput(
        reminder_id="abc-123",
        service_id="service-a",
        user_id="20240001",
        title="회의 준비",
        scheduled_at="2026-05-19T01:00:00Z",
        early_alert_minutes=10,
    )
)

Intended Use

  • 이 패키지는 Python 백엔드(예: Docker 기반 Lambda 런타임)에서 import 해서 사용합니다.
  • 실행 앱(lambda handler)은 얇게 유지하고, 실제 기능은 본 kit에 위임합니다.

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_backend_kit-0.1.6.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reminder_backend_kit-0.1.6-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file reminder_backend_kit-0.1.6.tar.gz.

File metadata

  • Download URL: reminder_backend_kit-0.1.6.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for reminder_backend_kit-0.1.6.tar.gz
Algorithm Hash digest
SHA256 aabbdc3ea121fb9ad1ea4a437fc2cb5f4b09a787c95bc3341fc70c3e007ee913
MD5 e9ea89f5cf6a527dd5294b9da37b595e
BLAKE2b-256 0883bf4f97f7b19f7f0f30556ca0a0b3ffc22f3432f05fbb1227834397ae1eef

See more details on using hashes here.

File details

Details for the file reminder_backend_kit-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for reminder_backend_kit-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c9990bf8b5a9bd807138a7265dc638e898b4d48544b987e3c912938f9de7b2a3
MD5 c39785f1adb7f31884d1bd72d434bbb9
BLAKE2b-256 f2dd7aecca6e18c2e2f42b2912a810690ca6dfd7a1fddd0343e79bb8e99901e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page