# AWS Lambda invoker
Simple package for lambda invocation with AWS boto3.
This package is intended to be used as an interface for invoking AWS Lambda functions emulating AWS API Gateway, SNS, Event bridge and SQS.
## Installation
```console
$ pip install aws-lambda-invoker
```
## Example
```python
invoker = LambdaInvoker(
lambda_name="TEST-LAMBDA",
payload="{\"key\": \"value\"}",
invoke_type=InvokeType.RequestResponse,
)
response = invoker.invoke()
# or using AGLambdaInvoker
invoker = AGLambdaInvoker(
lambda_name="TEST-LAMBDA",
method="GET",
path="TEST-path",
body="TEST-body",
headers={"key": "value"},
query_params={"key": "value"},
path_params={"key": "value"},
)
response = invoker.invoke()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "aws-lambda-invoker",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "aws, lambda, invoke, sqs, sns, eventbridge, apigateway",
"author": null,
"author_email": "SirPaulO <me@sirpauloliver.com>",
"download_url": "https://files.pythonhosted.org/packages/cb/bb/172536ba0e9a28a7f02867cb267d943929b09cc07f360f43840090e10cde/aws_lambda_invoker-0.0.1.tar.gz",
"platform": null,
"description": "# AWS Lambda invoker\r\n\r\nSimple package for lambda invocation with AWS boto3.\r\nThis package is intended to be used as an interface for invoking AWS Lambda functions emulating AWS API Gateway, SNS, Event bridge and SQS.\r\n\r\n## Installation\r\n\r\n```console\r\n$ pip install aws-lambda-invoker\r\n```\r\n\r\n\r\n## Example\r\n\r\n```python\r\ninvoker = LambdaInvoker(\r\n lambda_name=\"TEST-LAMBDA\",\r\n payload=\"{\\\"key\\\": \\\"value\\\"}\",\r\n invoke_type=InvokeType.RequestResponse,\r\n)\r\nresponse = invoker.invoke()\r\n\r\n# or using AGLambdaInvoker\r\n\r\ninvoker = AGLambdaInvoker(\r\n lambda_name=\"TEST-LAMBDA\",\r\n method=\"GET\",\r\n path=\"TEST-path\",\r\n body=\"TEST-body\",\r\n headers={\"key\": \"value\"},\r\n query_params={\"key\": \"value\"},\r\n path_params={\"key\": \"value\"},\r\n)\r\nresponse = invoker.invoke()\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "AWS Lambda invoker",
"version": "0.0.1",
"project_urls": {
"Bug Tracker": "https://github.com/SirPaulO/aws_lambda_invoker/issues",
"Homepage": "https://github.com/SirPaulO/aws_lambda_invoker",
"Repository": "https://github.com/SirPaulO/aws_lambda_invoker.git"
},
"split_keywords": [
"aws",
" lambda",
" invoke",
" sqs",
" sns",
" eventbridge",
" apigateway"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1127453b40a90b3747da2450fb266c72e8b50639f31f67898fb68741573c89eb",
"md5": "157d99727cca1015df4307ee3711a3b4",
"sha256": "e470252ab181383bb53a4e08e89f337d8723934aa7ba62259ebcc7ca16b965db"
},
"downloads": -1,
"filename": "aws_lambda_invoker-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "157d99727cca1015df4307ee3711a3b4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4400,
"upload_time": "2024-03-20T18:25:46",
"upload_time_iso_8601": "2024-03-20T18:25:46.042533Z",
"url": "https://files.pythonhosted.org/packages/11/27/453b40a90b3747da2450fb266c72e8b50639f31f67898fb68741573c89eb/aws_lambda_invoker-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cbbb172536ba0e9a28a7f02867cb267d943929b09cc07f360f43840090e10cde",
"md5": "c1e489b9a1ed4ba8e1136953a356af3e",
"sha256": "eae813d5af998a86c230e18d7fd2d1d8ae8d44e5566806abbc9ac98ba940a631"
},
"downloads": -1,
"filename": "aws_lambda_invoker-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c1e489b9a1ed4ba8e1136953a356af3e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 4066,
"upload_time": "2024-03-20T18:25:47",
"upload_time_iso_8601": "2024-03-20T18:25:47.470608Z",
"url": "https://files.pythonhosted.org/packages/cb/bb/172536ba0e9a28a7f02867cb267d943929b09cc07f360f43840090e10cde/aws_lambda_invoker-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-20 18:25:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "SirPaulO",
"github_project": "aws_lambda_invoker",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "boto3",
"specs": [
[
"~=",
"1.34.66"
]
]
},
{
"name": "orjson",
"specs": [
[
"~=",
"3.9.15"
]
]
}
],
"lcname": "aws-lambda-invoker"
}