Skip to main content
Pre-release

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

edd-kernel-provider-in-memory

In-memory provider for local development and tests.

This provider implements the EDD Kernel contracts without external infrastructure. It is useful for local development, unit tests, examples and contract validation.

It is not a durable broker and should not be used as production storage.

Install

uv add edd-kernel-contracts edd-kernel-provider-in-memory

When provider selection should be driven by configuration, install edd-kernel-factory in place of the contract. It brings the contract and re-exports it:

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()

Provider Options

  • poll_interval_ms: idle polling interval used by the shared consumer.
  • queues: initial queue names and JSON values, encoded when the client is created.

InMemoryEddClient is public, directly constructible and subclassable. Its class-level provider_name is in-memory.

Factory 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,
    )
)

Addressing

InMemoryEventTarget and InMemoryEventQueue accept EddQueueNameAddress(queue_name=…), a logical name joined with env, project and prefix. Any other address is refused by the type checker, and at runtime with EddKernelConfigurationError.

Behavior

send appends a message to the channel its queue_name names, creating it when create_if_not_exists=True.

consume reads from the channel with the same name.

ack() marks the message as terminal.

nack() requeues the message for retry.

When create_if_not_exists=False, consuming a missing queue raises an error. When enabled globally or through EddConsumeOptions, the channel is created before the consumer starts.

Package Boundary

This provider contains only the in-memory transport behavior. Shared serialization, lifecycle, error handling and polling behavior live in edd-kernel-contracts.

Metadata

Release files for edd-kernel-provider-in-memory 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-provider-in-memory 0.2.0a2
File Size Uploaded Provenance Actions
edd_kernel_provider_in_memory-0.2.0a2.tar.gz 4.9 kB Without provenance Details for edd_kernel_provider_in_memory-0.2.0a2.tar.gz

Built distribution (wheel)

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

Total release size: 11.1 kB

Release files / edd_kernel_provider_in_memory-0.2.0a2.tar.gz

Download URL edd_kernel_provider_in_memory-0.2.0a2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1b20b9bffea6206e4f076b27c86391cc0f17b13b64f8d0e470a6363a6ffaba4c
BLAKE2b-256 checksum
How to use checksums
26af9487ba6c14d92eb9f2fd806ab569e1ad29f08b9ee3c96548e496748b2e58
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_provider_in_memory-0.2.0a2-py3-none-any.whl

Download URL edd_kernel_provider_in_memory-0.2.0a2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e043321990377314d24c990055cee2deba89bf92e19aa1f113657807e14a16f8
BLAKE2b-256 checksum
How to use checksums
edcfb530cfbbd033f80d07a8df1a5c68a847a587ba48aa8e0ddca555ad39c11e
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-provider-in-memory 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