Skip to main content

Official Python SDK for the EdgeCron webhook scheduling and callback delivery platform.

Project description

EdgeCron Python SDK

Official Python SDK for the EdgeCron webhook scheduling and callback delivery platform.

Schedule delayed HTTP requests, deliver webhooks reliably, and automatically retry failed calls — with full execution history so nothing gets lost.

中文文档:README.zh-CN.md

Install

pip install edgecron-python

Quick Start

from edgecron import EdgeCron, APIError
from edgecron.types import CreateScheduleRequest

client = EdgeCron("ak_xxx", "sk_xxx")

try:
    schedule = client.schedules.create(
        CreateScheduleRequest(
            name="my-schedule",
            cron_expr="*/5 * * * *",
        )
    )
    print(schedule.id)
except APIError as exc:
    print(exc.code, exc.message, exc.request_id)

Modules

Client method Description
client.schedules.* Cron schedule CRUD, pause, resume
client.tasks.* Task execution instances, cancel
client.events.* Event publishing and management
client.endpoints.* Webhook endpoint configuration
client.deliveries.* Delivery attempt records and retry
client.retries.* Retry policies and jobs
client.subscription.* Quota, usage, and resource limits

Configuration

  • base_url — override API base URL
  • timeout — HTTP client timeout in seconds
  • session — custom requests.Session

Error Handling

Service-side business errors raise APIError.

from edgecron import APIError

try:
    client.schedules.get(123)
except APIError as exc:
    print(exc.code, exc.message, exc.request_id)

Security Notice

This is a server-side SDK. Never expose secret in browsers, mobile apps, or other untrusted clients.

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

edgecron_python-1.0.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

edgecron_python-1.0.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file edgecron_python-1.0.0.tar.gz.

File metadata

  • Download URL: edgecron_python-1.0.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for edgecron_python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 398fbbe2976765cb585dcf7fa9d12656edf3dd27e0345b094feb3da73f3ff14e
MD5 8f437ec4e4621666ceddfde6d05a743a
BLAKE2b-256 017ccc599bff548a6854a071ddaf0275254b860a38bea0ff95eaba00f85bfd23

See more details on using hashes here.

Provenance

The following attestation bundles were made for edgecron_python-1.0.0.tar.gz:

Publisher: publish-python-pypi.yml on edgecron/edgecron-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file edgecron_python-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edgecron_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2046578b1e12828dfc6aa133551283d0bb7e20d795ef63db1f523c00846c9b75
MD5 653fdb6a8029bf4f7ffac752d30b827f
BLAKE2b-256 8fb67e9b8345eec05ebaed0f538c2af3e83b119252051727cb23a1b61bf145c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for edgecron_python-1.0.0-py3-none-any.whl:

Publisher: publish-python-pypi.yml on edgecron/edgecron-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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