Skip to main content

Micro library for typing function contexts in EchoStream functions

Project description

echostream-function-context

Micro library for typing function contexts in EchoStream functions

Note: Version >= 0.1.0 requires Python 3.12

Installation

For production

pip install echostream-function-context

Production install has no requirements.

For development

pip install echostream-function-context[dev]

Development install will also install boto3-stubs[dynamodb].

Usage

def processor(*, context, message, source, **kwargs):

    from typing import TYPE_CHECKING, cast

    if TYPE_CHECKING:
        from echostream_function_context import Context
    else:
        Context = object

    context = cast(Context, context)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

echostream_function_context-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file echostream_function_context-0.1.0.tar.gz.

File metadata

File hashes

Hashes for echostream_function_context-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fd714da336bd6e7e2b58b6fb247f38cdbe4de8939ae2e45bc4c4038cc12ffce6
MD5 1436d1c845cae0f6c5e163b6a2187bd6
BLAKE2b-256 7e368bf3cf15419f259da01c9b06da778c922e3eb5fee2f0c01f2ac5641957b0

See more details on using hashes here.

File details

Details for the file echostream_function_context-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for echostream_function_context-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 090aee41dbd93182522d5f98e8ba13b06021e7bf70a2e022de9435b443a8a3cd
MD5 a931df71e84abe6c2ef524ac8a603527
BLAKE2b-256 75eb9b82d5686ce9c2af5bbcc3e302e5b94b5229054daf23b1efe4fb7f88a80c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page