{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"}],"enrichment":{"capability":"Provides the AWS Lambda Context class for type hints and mocking in Lambda handler functions, enabling type checking with mypy and editor auto-completion.","skillfed_tags":["aws-lambda","type-hints","testing"],"use_cases":["Add type hints to Lambda handler functions so mypy and your IDE can catch context-related type errors before deployment.","Mock the Lambda context object in unit tests without needing to invoke actual Lambda or AWS services.","Build test fixtures that populate all context attributes (function name, request ID, Cognito identity, etc.) for deterministic handler testing.","Enable editor auto-completion for context properties in your handler code."],"what_it_does":"aws-lambda-context is a minimal library that exports the AWS Lambda Context class for use in Python Lambda handler functions. It serves two purposes: enabling static type checking of the context parameter in your handler via type hints (so mypy and IDEs can validate your code), and providing mock-friendly versions of the context and related classes for unit testing without invoking actual Lambda.\n\nThe package contains no runtime dependencies and is a pure Python module. It exports LambdaContext, LambdaCognitoIdentity, LambdaClientContext, and LambdaClientContextMobileClient as dataclass-like objects you can instantiate and configure in tests. The library is abandoned (last release July 2019) but marked stable; it works with Python 3.6 and later.","worth_installing":"Yes, if you are type-checking existing Lambda handlers or writing tests for them and need the context class definition. The package is abandoned and will not receive updates, so it is suitable only for stable, long-lived codebases that do not expect the AWS Lambda context shape to change. If you need current AWS Lambda typing support, verify that the context class matches your runtime version."},"id":"aws-lambda-context","links":{"html":"https://skillfed.io/packages/aws-lambda-context","md":"https://skillfed.io/packages/aws-lambda-context.md","pypi":"https://pypi.org/project/aws-lambda-context/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-07-17","license_spdx":null,"license_treatment":"permissive","name":"aws-lambda-context","python_support":"supports_current","summary":"AWS Lambda Context class for type checking and testing"},"popularity":{"monthly_downloads":174528,"position":10280,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
