The ActivitySmith Python library provides convenient access to the ActivitySmith API from Python applications.
See the API reference.
This package is available on PyPI:
pip install activitysmithAlternatively, install from source with:
python -m pip install .import os
from activitysmith import ActivitySmith
client = ActivitySmith(
api_key=os.environ["ACTIVITYSMITH_API_KEY"],
)
# Push Notifications
client.notifications.send_push_notification(
push_notification_request={
# See PushNotificationRequest for fields
}
)
# Live Activities
client.live_activities.start_live_activity(
live_activity_start_request={
# See LiveActivityStartRequest for fields
}
)The client exposes grouped resources:
client.live_activitiesclient.notifications
Request/response models are included and can be imported from activitysmith_openapi.models.
- Python 3.9 or newer
MIT