Python client library that proxies reminder operations to the main Reminder API Gateway (Lambda backend).
Project description
reminder-main-api-client
메인 Reminder API Gateway(CRUD Lambda)로 요청을 전달하는 Python 클라이언트입니다.
기존 프로젝트에서 pip install 후, 객체 생성 시 x-api-key를 주입해서
메인 Lambda에서 실제 처리를 수행하도록 사용할 수 있습니다.
Installation
pip install reminder-main-api-client
Usage
from reminder_main_api_client import ReminderMainApiClient
client = ReminderMainApiClient(
api_base_url="https://<api-id>.execute-api.ap-northeast-2.amazonaws.com/prod",
api_key="<issued-x-api-key>",
)
# EventBridge 스케줄 생성(메인 Lambda의 POST /reminders 호출)
create_res = client.create_event_bridge(
user_id="20240001",
title="회의 준비",
scheduled_at="2026-05-19T01:00:00Z",
early_alert_minutes=10,
)
# EventBridge 스케줄 삭제(메인 Lambda의 DELETE /reminders/{id} 호출)
delete_res = client.delete_event_bridge(
reminder_id="<reminder-id>",
user_id="20240001",
)
# Teams 즉시 발송(메인 Lambda의 POST /alerts/send 호출)
# 주의: 이 라우트는 백엔드에 구현되어 있어야 동작합니다.
send_res = client.send_teams(
user_id="20240001",
title="즉시 알림",
scheduled_at="2026-05-19T01:00:00Z",
)
Notes
- 이 패키지는 Teams API/EventBridge를 직접 호출하지 않습니다.
- 모든 동작은 메인 API에 위임됩니다.
- 따라서 권한/감사/로깅/서비스 매핑(
x-api-key)은 메인 Lambda 정책을 그대로 따릅니다.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reminder_main_api_client-0.1.1.tar.gz.
File metadata
- Download URL: reminder_main_api_client-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65359cec34340425fab5adbcd05a076d8755978a840bd75b6c6a5c029f40a39a
|
|
| MD5 |
ce820de682089fd33514b9507b6201a8
|
|
| BLAKE2b-256 |
77b8d81fa5009158640d9d85e4e5d73e015bc5750e7acbe9f1d15b4c6107fb11
|
File details
Details for the file reminder_main_api_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: reminder_main_api_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6447285b5aa80e6d81d7036fe54470b5a3ecc5b9bd27329875797c7b32637f3
|
|
| MD5 |
ef0361f9abbbfaee9627bc570dde3161
|
|
| BLAKE2b-256 |
4c6eed5a2b38e9c842a5fe69febb9df334bed8a7e474a8ce2f139dc10fbd0665
|