Push Notifications and Live Activities with Python

Works with your Python stack

Add Push Notifications and Live Activities to your Python application with a few lines of code.

pip install activitysmith
import os
from activitysmith import ActivitySmith, content_state
activitysmith = ActivitySmith(api_key=os.environ["ACTIVITYSMITH_API_KEY"])

Push Notifications

A new subscription, a finished job, an agent that needs your attention. Send the update straight to your iPhone or iPad.

ActivitySmith Push Notification: New subscription, Customer upgraded to Pro plan
activitysmith.notifications.send(
title="New subscription 💸",
message="Customer upgraded to Pro plan",
)
Explore Push Notifications

Live Activities

Keep deployments, backups, and long-running jobs visible on your Lock Screen and Dynamic Island. Update the same Live Activity as the work progresses.

Nightly database backup Live Activity showing step 2 of 3
activitysmith.live_activities.stream(
"nightly-backup",
content_state=content_state(
title="Nightly database backup",
subtitle="upload archive",
type="segmented_progress",
number_of_steps=3,
current_step=2,
),
)
Explore Live Activities

Lock Screen Widgets

Revenue, signups, uptime. Send a metric value from your backend and see it in a widget on your Lock Screen.

ActivitySmith Lock Screen Widgets displaying business metrics
activitysmith.metrics.update("revenue", 2430)
Explore Lock Screen Widgets

App Icon Badge

MRR, open tickets, a stock price. Show the number you care about on your ActivitySmith app icon.

ActivitySmith app icon with an App Icon Badge
activitysmith.badge_count(8333)
Explore App Icon Badge

Send your first push notification.

Pair your device, create an API key, and make your first call.

Explore other SDKs