summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-aws-lambda-typing.spec403
-rw-r--r--sources1
3 files changed, 405 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ceada32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aws-lambda-typing-2.17.0.tar.gz
diff --git a/python-aws-lambda-typing.spec b/python-aws-lambda-typing.spec
new file mode 100644
index 0000000..15734a8
--- /dev/null
+++ b/python-aws-lambda-typing.spec
@@ -0,0 +1,403 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aws-lambda-typing
+Version: 2.17.0
+Release: 1
+Summary: A package that provides type hints for AWS Lambda event, context and response objects
+License: MIT
+URL: https://github.com/MousaZeidBaker/aws-lambda-typing
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/61/a2/c2188570b7b71aa560f826a139ae83b402f6ccb938e390bc2851e509cfac/aws-lambda-typing-2.17.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-typing-extensions
+
+%description
+# AWS Lambda Typing
+
+![build](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Publish/badge.svg)
+![test](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Test/badge.svg)
+[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
+![python_version](https://img.shields.io/badge/python-%3E=3.6-blue.svg)
+[![pypi_v](https://img.shields.io/pypi/v/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+[![pypi_dm](https://img.shields.io/pypi/dm/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+
+A package that provides type hints for AWS Lambda event, context and response
+objects. It's a convenient way to get autocomplete and type hints built into
+IDEs. Type annotations are not checked at runtime but are only enforced by third
+party tools such as type checkers, IDEs, linters, etc.
+
+##### Table of Contents
+- [Usage](#usage)
+- [Demo](#demo)
+- [Types](#types)
+ - [Context](#context)
+ - [Events](#events)
+ - [Responses](#responses)
+- [Test](#test)
+- [Contributing](#contributing)
+- [Issues](#issues)
+
+## Usage
+### Example: AWS SQS event
+
+```python
+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())
+
+ message: events.sqs.SQSMessage
+
+```
+
+## Demo
+### IDE autocomplete
+![ide_autocomplete](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/ide_autocomplete.gif)
+
+### IDE code reference information
+![code_reference_information](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/code_reference_information.gif)
+
+## Types
+### Context
+- Context
+
+### Events
+- ALBEvent
+- ApacheKafkaEvent
+- APIGatewayRequestAuthorizerEvent
+- APIGatewayTokenAuthorizerEvent
+- APIGatewayProxyEventV1
+- APIGatewayProxyEventV2
+- AppSyncResolverEvent
+- CloudFormationCustomResourceEvent
+- CloudWatchEventsMessageEvent (Deprecated since version 2.10.0: use `EventBridgeEvent` instead.)
+- CloudWatchLogsEvent
+- CodeCommitMessageEvent
+- CodePipelineEvent
+- CognitoCustomMessageEvent
+- ConfigEvent
+- DynamoDBStreamEvent
+- EventBridgeEvent
+- IoTPreProvisioningHookEvent
+- KinesisFirehoseEvent
+- KinesisStreamEvent
+- MQEvent
+- MSKEvent
+- S3Event
+- S3BatchEvent
+- SecretsManagerRotationEvent
+- SESEvent
+- SNSEvent
+- SQSEvent
+- WebSocketConnectEvent
+- WebSocketRouteEvent
+
+### Requests
+- SNSPublish
+- SNSPublishBatch
+
+### Responses
+- ALBResponse
+- APIGatewayAuthorizerResponse
+- APIGatewayProxyResponseV1
+- APIGatewayProxyResponseV2
+- DynamoDBBatchResponse
+- IoTPreProvisioningHookResponse
+- KinesisFirehoseTransformationResponse
+- S3BatchResponse
+
+### Other
+- PolicyDocument
+
+## Contributing
+
+Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/aws-lambda-typing/blob/master/CONTRIBUTING.md).
+
+## Issues
+
+If you encounter any problems, please file an
+[issue](https://github.com/MousaZeidBaker/aws-lambda-typing/issues) along with a
+detailed description.
+
+
+%package -n python3-aws-lambda-typing
+Summary: A package that provides type hints for AWS Lambda event, context and response objects
+Provides: python-aws-lambda-typing
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aws-lambda-typing
+# AWS Lambda Typing
+
+![build](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Publish/badge.svg)
+![test](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Test/badge.svg)
+[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
+![python_version](https://img.shields.io/badge/python-%3E=3.6-blue.svg)
+[![pypi_v](https://img.shields.io/pypi/v/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+[![pypi_dm](https://img.shields.io/pypi/dm/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+
+A package that provides type hints for AWS Lambda event, context and response
+objects. It's a convenient way to get autocomplete and type hints built into
+IDEs. Type annotations are not checked at runtime but are only enforced by third
+party tools such as type checkers, IDEs, linters, etc.
+
+##### Table of Contents
+- [Usage](#usage)
+- [Demo](#demo)
+- [Types](#types)
+ - [Context](#context)
+ - [Events](#events)
+ - [Responses](#responses)
+- [Test](#test)
+- [Contributing](#contributing)
+- [Issues](#issues)
+
+## Usage
+### Example: AWS SQS event
+
+```python
+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())
+
+ message: events.sqs.SQSMessage
+
+```
+
+## Demo
+### IDE autocomplete
+![ide_autocomplete](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/ide_autocomplete.gif)
+
+### IDE code reference information
+![code_reference_information](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/code_reference_information.gif)
+
+## Types
+### Context
+- Context
+
+### Events
+- ALBEvent
+- ApacheKafkaEvent
+- APIGatewayRequestAuthorizerEvent
+- APIGatewayTokenAuthorizerEvent
+- APIGatewayProxyEventV1
+- APIGatewayProxyEventV2
+- AppSyncResolverEvent
+- CloudFormationCustomResourceEvent
+- CloudWatchEventsMessageEvent (Deprecated since version 2.10.0: use `EventBridgeEvent` instead.)
+- CloudWatchLogsEvent
+- CodeCommitMessageEvent
+- CodePipelineEvent
+- CognitoCustomMessageEvent
+- ConfigEvent
+- DynamoDBStreamEvent
+- EventBridgeEvent
+- IoTPreProvisioningHookEvent
+- KinesisFirehoseEvent
+- KinesisStreamEvent
+- MQEvent
+- MSKEvent
+- S3Event
+- S3BatchEvent
+- SecretsManagerRotationEvent
+- SESEvent
+- SNSEvent
+- SQSEvent
+- WebSocketConnectEvent
+- WebSocketRouteEvent
+
+### Requests
+- SNSPublish
+- SNSPublishBatch
+
+### Responses
+- ALBResponse
+- APIGatewayAuthorizerResponse
+- APIGatewayProxyResponseV1
+- APIGatewayProxyResponseV2
+- DynamoDBBatchResponse
+- IoTPreProvisioningHookResponse
+- KinesisFirehoseTransformationResponse
+- S3BatchResponse
+
+### Other
+- PolicyDocument
+
+## Contributing
+
+Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/aws-lambda-typing/blob/master/CONTRIBUTING.md).
+
+## Issues
+
+If you encounter any problems, please file an
+[issue](https://github.com/MousaZeidBaker/aws-lambda-typing/issues) along with a
+detailed description.
+
+
+%package help
+Summary: Development documents and examples for aws-lambda-typing
+Provides: python3-aws-lambda-typing-doc
+%description help
+# AWS Lambda Typing
+
+![build](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Publish/badge.svg)
+![test](https://github.com/MousaZeidBaker/aws-lambda-typing/workflows/Test/badge.svg)
+[![License](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)
+![python_version](https://img.shields.io/badge/python-%3E=3.6-blue.svg)
+[![pypi_v](https://img.shields.io/pypi/v/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+[![pypi_dm](https://img.shields.io/pypi/dm/aws-lambda-typing)](https://pypi.org/project/aws-lambda-typing)
+
+A package that provides type hints for AWS Lambda event, context and response
+objects. It's a convenient way to get autocomplete and type hints built into
+IDEs. Type annotations are not checked at runtime but are only enforced by third
+party tools such as type checkers, IDEs, linters, etc.
+
+##### Table of Contents
+- [Usage](#usage)
+- [Demo](#demo)
+- [Types](#types)
+ - [Context](#context)
+ - [Events](#events)
+ - [Responses](#responses)
+- [Test](#test)
+- [Contributing](#contributing)
+- [Issues](#issues)
+
+## Usage
+### Example: AWS SQS event
+
+```python
+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())
+
+ message: events.sqs.SQSMessage
+
+```
+
+## Demo
+### IDE autocomplete
+![ide_autocomplete](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/ide_autocomplete.gif)
+
+### IDE code reference information
+![code_reference_information](https://raw.githubusercontent.com/MousaZeidBaker/aws-lambda-typing/master/media/code_reference_information.gif)
+
+## Types
+### Context
+- Context
+
+### Events
+- ALBEvent
+- ApacheKafkaEvent
+- APIGatewayRequestAuthorizerEvent
+- APIGatewayTokenAuthorizerEvent
+- APIGatewayProxyEventV1
+- APIGatewayProxyEventV2
+- AppSyncResolverEvent
+- CloudFormationCustomResourceEvent
+- CloudWatchEventsMessageEvent (Deprecated since version 2.10.0: use `EventBridgeEvent` instead.)
+- CloudWatchLogsEvent
+- CodeCommitMessageEvent
+- CodePipelineEvent
+- CognitoCustomMessageEvent
+- ConfigEvent
+- DynamoDBStreamEvent
+- EventBridgeEvent
+- IoTPreProvisioningHookEvent
+- KinesisFirehoseEvent
+- KinesisStreamEvent
+- MQEvent
+- MSKEvent
+- S3Event
+- S3BatchEvent
+- SecretsManagerRotationEvent
+- SESEvent
+- SNSEvent
+- SQSEvent
+- WebSocketConnectEvent
+- WebSocketRouteEvent
+
+### Requests
+- SNSPublish
+- SNSPublishBatch
+
+### Responses
+- ALBResponse
+- APIGatewayAuthorizerResponse
+- APIGatewayProxyResponseV1
+- APIGatewayProxyResponseV2
+- DynamoDBBatchResponse
+- IoTPreProvisioningHookResponse
+- KinesisFirehoseTransformationResponse
+- S3BatchResponse
+
+### Other
+- PolicyDocument
+
+## Contributing
+
+Contributions are welcome! See the [Contributing Guide](https://github.com/MousaZeidBaker/aws-lambda-typing/blob/master/CONTRIBUTING.md).
+
+## Issues
+
+If you encounter any problems, please file an
+[issue](https://github.com/MousaZeidBaker/aws-lambda-typing/issues) along with a
+detailed description.
+
+
+%prep
+%autosetup -n aws-lambda-typing-2.17.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-aws-lambda-typing -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.17.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..46d0dc4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e4aa37cc53a80fa77e0cc75515f7cf95 aws-lambda-typing-2.17.0.tar.gz