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

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.0.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

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