This release is a pre-release and may not be stable for production use.
edd-kernel-contracts
Provider-agnostic contracts for EDD Kernel.
This package is the public contract layer for the EDD Kernel package family. It defines the shared event types, client protocol, serialization options, acknowledgement behavior, consumer lifecycle helpers and polling consumer used by providers.
Providers depend on this package. This package does not depend on providers or provider SDKs.
Install
uv add edd-kernel-contracts
An application usually installs edd-kernel-factory and one provider instead. The
factory brings this package and re-exports it, so everything below is importable from
the factory as well:
uv add edd-kernel-factory edd-kernel-provider-in-memory
Usage
from edd_kernel.contracts import EddClientOptions, EddQueueNameAddress
from edd_kernel.provider_in_memory import create_in_memory_client
client = create_in_memory_client(EddClientOptions(create_if_not_exists=True))
await client.send(EddQueueNameAddress(queue_name="events"), {"type": "user.created"})
async def handler(event: object, context: object) -> None:
await context.ack()
consumer = await client.consume(EddQueueNameAddress(queue_name="events"), handler)
await consumer.stop()
await client.close()
Public Surface
EventEnvelope: optional structured event envelope.EddEventTarget: provider-neutral send destination.EventQueue: provider-neutral consume source.EddDeliveryContext:ackandnackcontract passed to handlers.EddClient: async client protocol implemented by providers.EddClientClass: class-constructor protocol accepted by the factory.EddProviderFactory: equivalent provider creator-function protocol.EddClientOptions: shared serialization, acknowledgement and lifecycle options.EddSendOptions: per-send serialization override.EddConsumeOptions: per-consume queue creation and polling options.EddLogger: the object the kernel writes its log lines to.EddKernelErrorand the typed errors below it.- the provider registry:
EddProviderName,EDD_PROVIDER_ALIASES,EDD_PROVIDER_TARGET_BY_NAME,normalize_provider_name,find_provider_target.
EddPollingConsumer and EddClientLifecycle are the shared implementation and live
in edd_kernel.core, which this distribution does not depend on.
Defaults
serialization = jsonauto_idempotency_key = falsecreate_if_not_exists = falseauto_ack = falseunhandled_error_action = nackconcurrency = 1logger = Nonedebug = false
auto_idempotency_key is only compatible with JSON serialization.
auto_ack=True is a kernel-level manual acknowledgement performed before the
handler runs. Providers must still use provider-native manual acknowledgement.
Package Boundary
Keep provider-specific SDKs, credentials and transport behavior outside this package. Shared validation, serialization, queue normalization, lifecycle and portable error handling belong here.
Metadata
Release files for edd-kernel-contracts 0.2.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edd_kernel_contracts-0.2.0a2.tar.gz | 9.0 kB | Without provenance | Details for edd_kernel_contracts-0.2.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edd_kernel_contracts-0.2.0a2-py3-none-any.whl | Python 3 | none | any | Details for edd_kernel_contracts-0.2.0a2-py3-none-any.whl |
Total release size: 21.3 kB
Release files / edd_kernel_contracts-0.2.0a2.tar.gz
| Download URL | edd_kernel_contracts-0.2.0a2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d509d09ec377b9ece5840cb85ff1f7a36e0854c76116f660b7776fd934b4c87
|
|
BLAKE2b-256 checksum How to use checksums |
356c8b30d8505522c05205555bc30e82e343f2085ce153c452728a732b391e77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / edd_kernel_contracts-0.2.0a2-py3-none-any.whl
| Download URL | edd_kernel_contracts-0.2.0a2-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b1cc078599db5b596bbfb911bbc748e28016591e475411fd4391f479ac47862
|
|
BLAKE2b-256 checksum How to use checksums |
400c82d076f23fb1d098c0d9668a2ad2c11dc5f5f7a2e1785a953a293024df8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for edd-kernel-contracts 0.2.0a2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.