aws-lambda-typing
A package that provides type hints for AWS Lambda event, context and response objects
Decision gist · record as of 2026-08-14
Yes, if you are writing typed Python Lambda handlers and want IDE support and static type checking. The library is stable, has no security vulnerabilities, and carries minimal install friction. However, maintenance is dormant (last release 864 days ago), so verify that type definitions cover your specific event sources before relying on them for critical validation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single lightweight dependency (typing-extensions).
- Maintenance is dormant—last release was 864 days ago—but the package is marked Production/Stable and the repository remains active with no archival.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for commercial and open-source projects.
last release 2024-04-02 (864 days) · last repo commit 2024-04-02 · 114 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,591,290 downloads/mo, #2,980 on PyPI
Alternatives
Verify before relying
pip install aws-lambda-typing
from aws_lambda_typing import context as context_, events
def handler(event: events.SQSEvent, context: context_.Context) -> None:
for record in event['Records']:
print(record['body'])
print(context.get_remaining_time_in_millis())- Whether type hints remain accurate for AWS Lambda event schemas and API changes since last release 864 days ago.
- Coverage completeness for newer Lambda event sources or response types introduced after the last release date.
What it is and what it does
aws-lambda-typing is a type-hints library for AWS Lambda handlers. It provides type annotations for event and context objects that Lambda passes to your handler function, plus response types for various Lambda integrations including API Gateway, SQS, DynamoDB Streams, S3, SNS, and others. The package does not enforce types at runtime—it exists purely to enable IDE autocomplete and static type checking in your development environment.
You import event and context types, annotate your handler function signature, and gain IDE support for accessing fields on those objects. The library covers a broad range of AWS services that can trigger Lambda functions, including ALB, API Gateway (v1 and v2), AppSync, CloudFormation, CloudWatch, CodeCommit, CodePipeline, Cognito, Config, DynamoDB Streams, EventBridge, Kinesis, MQ, MSK, S3, Secrets Manager, SES, SNS, and SQS, along with WebSocket route events.
Use it for
- Add IDE autocomplete and type checking to Lambda handler functions without runtime overhead.
- Catch typos and incorrect field access in event and context objects before deployment.
- Document the expected shape of Lambda events in your codebase through type annotations.
- Enable refactoring tools and IDE navigation to safely trace usage of event fields across serverless code.
- Validate handler signatures against AWS Lambda's event and context contracts during development.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are writing typed Python Lambda handlers and want IDE support and static type checking.
The library is stable, has no security vulnerabilities, and carries minimal install friction. However, maintenance is dormant (last release 864 days ago), so verify that type definitions cover your specific event sources before relying on them for critical validation.
Install
aws-lambda-typing on PyPI
Before you install
Low install friction with a single lightweight dependency (typing-extensions). Maintenance is dormant—last release was 864 days ago—but the package is marked Production/Stable and the repository remains active with no archival.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it safe for commercial and open-source projects.
Quickstart
pip install aws-lambda-typing
from aws_lambda_typing import context as context_, events
def handler(event: events.SQSEvent, context: context_.Context) -> None:
for record in event['Records']:
print(record['body'])
print(context.get_remaining_time_in_millis())
Verify before relying
- Whether type hints remain accurate for AWS Lambda event schemas and API changes since last release 864 days ago.
- Coverage completeness for newer Lambda event sources or response types introduced after the last release date.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping-extensions |
| Maintenance | Dormant 864 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,591,290 / month, #2,980 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: aws_lambda_typing-2.20.0-py3-none-any.whl
Tags
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 › “lambda event typing”
- aws-lambda-typingProvides type hints and IDE autocomplete for AWS Lambda event,…
- aws-lambda-contextProvides the AWS Lambda Context class for type hints and mocking in…
- types-aiobotocore-lambdaProvides type annotations and IDE autocompletion for aiobotocore…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also mypy-boto3-redshift-serverless · mypy-boto3-emr-serverless · mypy-boto3-serverlessrepo · boto3-type-annotations-with-docs · chalice · aws-lambda-context · aws-cdk.aws-sqs · mypy-boto3-lambda · boto3-type-annotations