Skip to content

ActivitySmithHQ/activitysmith-python

Repository files navigation

ActivitySmith Python Library

The ActivitySmith Python library provides convenient access to the ActivitySmith API from Python applications.

Documentation

See the API reference.

Installation

This package is available on PyPI:

pip install activitysmith

Alternatively, install from source with:

python -m pip install .

Usage

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
    }
)

API Surface

The client exposes grouped resources:

  • client.live_activities
  • client.notifications

Request/response models are included and can be imported from activitysmith_openapi.models.

Requirements

  • Python 3.9 or newer

License

MIT

About

Python library for the ActivitySmith API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages