Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

edd-kernel-core

Shared EDD Kernel implementation: client option validation, message serialization, polling consumers, client lifecycle, observability and provider error normalization.

This distribution belongs to the EDD Kernel package family. It sits between edd-kernel-contracts and the provider distributions.

Install it when you build a provider or reuse the kernel helpers directly. If you only need to type an EDD client or catch EDD errors, depend on edd-kernel-contracts alone.

Install

pip install edd-kernel-core edd-kernel-contracts

Usage

from edd_kernel.contracts import EddClientOptions
from edd_kernel.core import normalize_client_options, run_provider_operation

options = normalize_client_options(EddClientOptions(concurrency=4))

# No raw SDK failure leaves here: it comes back as a kernel error carrying the
# provider, the target and the original object in ``cause``.
await run_provider_operation(lambda: publish(payload), "aws-sqs", "orders")

What it provides

Module Responsibility
options client, consume and queue option normalization
serialization JSON and raw message serialization and idempotency keys
polling the shared polling consumer used by pull-based providers
lifecycle client lifecycle, consumer tracking and close semantics
logging logger-aware event emission
error_normalization provider failures mapped onto the kernel error contract

Error normalization

Target-not-found and permission failures are normalized, because a caller must branch on them without knowing which provider is behind the contract. Every other failure keeps the provider message and gains provider, target and code, with the original exception preserved in cause.

An exception that already is an EddKernelError keeps its class and instance. Only the context it is missing is filled in.

License

MIT

Metadata

Release files for edd-kernel-core 0.2.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edd-kernel-core 0.2.0a2
File Size Uploaded Provenance Actions
edd_kernel_core-0.2.0a2.tar.gz 15.9 kB Without provenance Details for edd_kernel_core-0.2.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edd-kernel-core 0.2.0a2
File Interpreter ABI Platform Actions
edd_kernel_core-0.2.0a2-py3-none-any.whl Python 3 none any Details for edd_kernel_core-0.2.0a2-py3-none-any.whl

Total release size: 36.6 kB

Release files / edd_kernel_core-0.2.0a2.tar.gz

Download URL edd_kernel_core-0.2.0a2.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3b8b9f5ab702f8d6a3250e691325c6195b2841d9bd6fb248e603a2c70e3f2bac
BLAKE2b-256 checksum
How to use checksums
138dc4dd75bbffb95611d0ff7e5c1653bfca792d251d08e73fd3324335901300
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_core-0.2.0a2-py3-none-any.whl

Download URL edd_kernel_core-0.2.0a2-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
592659c40a499e510dde6f3010b50a55d2a0db30ad278d4ae77efa0f372609d7
BLAKE2b-256 checksum
How to use checksums
1d91602e89d24733bb8e143540ed58b4e57212fa2a1a5aeada0e2d908e2c8ab6
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-core 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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page