$npx skillfedfor your agent

aws-lambda-context

AWS Lambda Context class for type checking and testing

With conditionsPyPI TestingReleased Jul 2019174.5K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — aws_lambda_context-1.1.0-py3-none-any.whl
v1.1.0 · released 2019-07-17 · Python >= 3.6

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.6 or later.
  • Low install friction with no runtime dependencies.
  • Package is abandoned (last release 2019-07-17, 2585 days ago) but marked Production/Stable; use only if you accept no future maintenance.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive); you may use, modify, and distribute freely with attribution.

last release 2019-07-17 (2585 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 174,528 downloads/mo, #10,280 on PyPI

Verify before relying

pip install aws-lambda-context

from aws_lambda_context import LambdaContext

def my_lambda_handler(event: Any, context: LambdaContext) -> None:
    pass
  • Whether the LambdaContext class definition matches the current AWS Lambda runtime context object shape and all its attributes.
  • Whether type checking with mypy works correctly with modern mypy versions given the package's age.
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

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.

Install

aws-lambda-context on PyPI

Before you install

Low install friction with no runtime dependencies. Package is abandoned (last release 2019-07-17, 2585 days ago) but marked Production/Stable; use only if you accept no future maintenance.

Requires Python 3.6 or later.

License in practice

MIT license (permissive); you may use, modify, and distribute freely with attribution.

Quickstart

pip install aws-lambda-context

from aws_lambda_context import LambdaContext

def my_lambda_handler(event: Any, context: LambdaContext) -> None:
    pass

Verify before relying

  • Whether the LambdaContext class definition matches the current AWS Lambda runtime context object shape and all its attributes.
  • Whether type checking with mypy works correctly with modern mypy versions given the package's age.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >= 3.6
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,585 days since the last release
First released
Downloads174,528 / month, #10,280 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Evidence: aws_lambda_context-1.1.0-py3-none-any.whl

Tags

Capabilities
aws lambda context type hintslambda handler type checkingmock lambda context testingaws lambda typinglambda function type annotationslambda context mockpython lambda type hints
Topics
aws-lambdatype-hintstesting

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “aws lambda context type hints”

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also apig-wsgi · typish · types-mock · pook · pytest-mock · asyncmock · typeapi · moto-ext · freeze-uuid · aws-lambda-typing