FastAPI Microservices Platform Python SDK
The fastapi-microservices-platform-sdk distribution provides a synchronous
producer, control-plane client, raw-byte receiver verification, a SQLAlchemy
transactional outbox, and webhookctl. Its Python import remains
webhook_platform_sdk. Python 3.11+ is required.
python -m pip install .
from webhook_platform_sdk import Producer
with Producer("http://localhost:8000", "whk_...") as producer:
event = producer.send_event(
"order.created",
{"order_id": "42"},
"order-42-created",
)
The producer performs no implicit HTTP retries. If the result is ambiguous,
retry with the same idempotency key. ApiError exposes only status, bounded
error code, and bounded Retry-After; it never embeds raw response content.
Receiver code must pass the exact unparsed bytes to verify_request or
verify_and_claim. The latter accepts a durable claim(event_id) implementation.
Reserve the ID in the same transaction as durable receiver acceptance or state
changes, and return 2xx for a verified duplicate.
Install .[outbox] for enqueue_outbox and OutboxRelay. Enqueue in the
application transaction; the relay claims a bounded batch, commits, sends
outside the transaction, and finalizes with a lease token. A crash can resend,
so the relay always retains the same platform idempotency key.
webhookctl auth register and webhookctl auth login prompt for passwords
without placing them in process arguments. Login stores the bearer token in a
mode-0600 file bound to the service base URL; WEBHOOK_PLATFORM_TOKEN can
override it for ephemeral environments. Organization, project, API-key, and
endpoint commands cover initial setup. Producer credentials come only from
WEBHOOK_PLATFORM_API_KEY. Capture one-time API keys and endpoint secrets
directly into a secret manager.
Endpoints subscribe to every event unless created with an event-type filter.
webhookctl endpoints create --event-type order.* --event-type user.created
restricts fan-out to exact types and trailing prefix.* wildcards; the field
is omitted from the request when no filter is given, so the command also works
against servers that predate subscription filtering. webhookctl endpoints update changes the URL, description, or active state, replaces the
subscription list with repeated --event-type flags, or clears it with
--all-events. The same operations are available programmatically through
ManagementClient.create_endpoint(..., event_types=...) and
ManagementClient.update_endpoint, where passing event_types=None
explicitly clears the filter.
Release files for fastapi-microservices-platform-sdk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_microservices_platform_sdk-0.1.1.tar.gz | 24.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_microservices_platform_sdk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.2 kB
Release files / fastapi_microservices_platform_sdk-0.1.1.tar.gz
| Download URL | fastapi_microservices_platform_sdk-0.1.1.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c2b23c4f0a722785026bbc1d5aebcd41386325558ba2921937c7b4fca54fd33
|
|
BLAKE2b-256 checksum How to use checksums |
f6e14ff7fa0332a5e434bdb18b48a67a82f825e90818e40485df41b56fa11fe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency logRelease files / fastapi_microservices_platform_sdk-0.1.1-py3-none-any.whl
| Download URL | fastapi_microservices_platform_sdk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7367ed52291649dd09b122522539fb323d03be650e2682fbcdc69c39d8611c3c
|
|
BLAKE2b-256 checksum How to use checksums |
ff55af1f9c56ad6b529559c11594136bb080daad98a994ba7bc68116c03881f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency log