Skip to main content

Python client for the CruxPass API

Project description

cruxpass

Python client for the CruxPass API.

This package is intentionally small while the public API settles. It provides a thin requests-based wrapper around CruxPass publisher endpoints for creating groups, feeds, subscribers, one-off events, and recurring schedules.

Install

pip install cruxpass

Usage

from cruxpass import CruxPass

client = CruxPass(api_key="pk_...")

client.update_project(feed_domain="feeds.example.com")

client.create_feed(name="Events", slug="events")

client.upsert_event(
    feed_slug="events",
    external_id="event-123",
    summary="Demo Event",
    start="2026-07-20T23:00:00Z",
    end="2026-07-21T00:30:00Z",
)

subscriber = client.create_subscriber(
    label="Demo subscriber",
    feeds=["events"],
)

print(subscriber["subscribe_url"])

Feed reads

feed = client.get_subscriber_feed(subscriber["token"])

print(feed.status_code)
print(feed.etag)
print(feed.text)

not_modified = client.get_subscriber_feed(
    subscriber["token"],
    etag=feed.etag,
)

assert not_modified.status_code == 304

Recurring schedules

client.upsert_recurring_schedule(
    feed_slug="events",
    external_id="weekly-meeting",
    summary="Weekly Meeting",
    first_start="2026-07-20T23:00:00Z",
    first_end="2026-07-21T00:00:00Z",
    frequency="weekly",
    count=12,
)

client.move_recurring_occurrence(
    feed_slug="events",
    schedule_external_id="weekly-meeting",
    occurrence_number=2,
    start="2026-07-28T01:00:00Z",
    end="2026-07-28T02:00:00Z",
)

client.cancel_recurring_occurrence(
    feed_slug="events",
    schedule_external_id="weekly-meeting",
    occurrence_number=3,
)

Helpers

The client exposes the documented REST surface:

  • get_project() / update_project(feed_domain=...)
  • list_groups() / create_group(...)
  • list_feeds() / create_feed(...)
  • list_subscribers() / create_subscriber(...)
  • deactivate_subscriber(token) / rotate_subscriber_token(token) / refresh_subscriber_artifact(token)
  • upsert_event(...) / cancel_event(...)
  • upsert_recurring_schedule(...)
  • upsert_recurring_exception(...)
  • move_recurring_occurrence(...)
  • skip_recurring_occurrence(...)
  • cancel_recurring_occurrence(...)
  • get_subscriber_feed(token, etag=..., modified_since=...)
  • get_subscriber_feed_ics(token)

For API paths that do not have a named helper yet, use client.request(method, path, json=..., params=...).

Status

Pre-1.0 package. Releases are coordinated with the matching CruxPass server contract; see CHANGELOG.md for endpoint, client method, and migration notes.

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

cruxpass-0.0.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

cruxpass-0.0.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file cruxpass-0.0.3.tar.gz.

File metadata

  • Download URL: cruxpass-0.0.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cruxpass-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7886b9f2067509df696aec4a4ab84c5ff73f19cb48214ad04732473759514122
MD5 353ee44fa5cccbad675171faa514b982
BLAKE2b-256 217a004237da81c89c096df89726265ece8d18bc1bd8c232eef678512ee01ed8

See more details on using hashes here.

File details

Details for the file cruxpass-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cruxpass-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cruxpass-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5757183495e07f1bf7468e90db83a7bddd1ae12d952f1d8a392c12148935bc
MD5 d87ff842cb502d4c6aeb207e1945fcf4
BLAKE2b-256 706a3a8fdacbb9f649bc01e28159d300153d2be2027ec8b184de1f06e4c2bb5f

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