diff options
Diffstat (limited to 'python-aws-lambda-typing.spec')
| -rw-r--r-- | python-aws-lambda-typing.spec | 403 |
1 files changed, 403 insertions, 0 deletions
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 + + + +[](LICENSE) + +[](https://pypi.org/project/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 code reference information + + +## 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 + + + +[](LICENSE) + +[](https://pypi.org/project/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 code reference information + + +## 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 + + + +[](LICENSE) + +[](https://pypi.org/project/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 code reference information + + +## 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 |
