This release is a pre-release and may not be stable for production use.
edd-kernel-factory
Dynamic provider factory for EDD Kernel.
This package creates an EDD client from configuration and loads provider
packages dynamically. It depends on edd-kernel-contracts, but it does not
force every provider package to be installed.
Install
This is the package an application imports from. Install it with at least one provider:
uv add edd-kernel-factory edd-kernel-provider-in-memory
It re-exports the whole of edd_kernel.contracts — the types, the enums, the error
classes and the provider registry — so the application does not install the contract
separately.
Usage
from edd_kernel.factory import CreateEddClientConfig, EddProviderName, create_edd_client
client = create_edd_client(
CreateEddClientConfig(
provider_name=EddProviderName.IN_MEMORY,
create_if_not_exists=True,
)
)
Provider-specific options are passed through options:
client = create_edd_client(
CreateEddClientConfig(
provider_name=EddProviderName.AWS_SQS,
create_if_not_exists=True,
options={"region": "us-east-1"},
)
)
Supported Provider Names
| Name | Package |
|---|---|
in-memory |
edd-kernel-provider-in-memory |
aws-sqs |
edd-kernel-provider-aws-sqs |
rabbitmq |
edd-kernel-provider-rabbitmq |
gcp-pub-sub |
edd-kernel-provider-gcp-pub-sub |
The same options are exported as EddProviderName. The class-aware registry is
exported as EDD_PROVIDER_TARGET_BY_NAME; EDD_PROVIDER_PACKAGE_BY_NAME is a
derived compatibility view.
Custom Provider Classes
provider_class is a class constructor, never an existing client instance. A
custom name is accepted when a class is supplied:
client = create_edd_client(
CreateEddClientConfig(
provider_name="company-provider",
provider_class=CompanyEddClient,
options=CompanyProviderOptions(),
)
)
The class receives shared options first and provider-specific options second.
If it declares provider_name, that identity must match the configured name.
The EddClientClass protocol describes this constructor contract.
Shared Options
CreateEddClientConfig mirrors the shared EddClientOptions fields:
serializationauto_idempotency_keycreate_if_not_existsauto_ackunhandled_error_actionconcurrencyloggerdebug
options is reserved for provider-specific configuration.
Package Boundary
The factory imports a built-in provider module dynamically and instantiates its
public concrete class. If the package or declared class is unavailable,
create_edd_client raises a clear runtime error.
Metadata
Release files for edd-kernel-factory 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_factory-0.2.0a2.tar.gz | 4.2 kB | Without provenance | Details for edd_kernel_factory-0.2.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edd_kernel_factory-0.2.0a2-py3-none-any.whl | Python 3 | none | any | Details for edd_kernel_factory-0.2.0a2-py3-none-any.whl |
Total release size: 9.6 kB
Release files / edd_kernel_factory-0.2.0a2.tar.gz
| Download URL | edd_kernel_factory-0.2.0a2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f02833da6df6c9332729e2267c1bc4c2c806a967b0edd9f9dc115d82a076679
|
|
BLAKE2b-256 checksum How to use checksums |
e0cee725e2a4ae2bbe8f3e42aac650f497a32903f43b8776c2ce7ecf853bf674
|
| 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_factory-0.2.0a2-py3-none-any.whl
| Download URL | edd_kernel_factory-0.2.0a2-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
175d523304fa64cc2c8a1a69cf040c73650d23813f89ace5c58ca11ab0175ade
|
|
BLAKE2b-256 checksum How to use checksums |
c0ab247325af5988518774e251b6c0c653604a3455032e6f23dd57a9e86887bb
|
| 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-factory 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.