for invoking aws lambda functions
Project description
lambdaSdk
easy invoking lambda functions
written on top of boto3, for the shortest way to invoke aws lambda functions
Install
pip install lambdasdk
How to use
prepare
Create user and set up creds
If not on aws, you need to create iam account and map the following keys
user and pw
if not on aws
user = aws_access_key_id
pw = aws_secret_access_key
if run on aws
user = None
pw = None
sessionToken = None
from lambdasdk.lambdasdk import Lambda
lambda_ = Lambda(
user = None,
pw = None,
sessionToken = None,
region = 'ap-southeast-1'
)
lambda_.invoke(
functionName= 'lambda-pip' ,
input = {'test':'test'},
invocationType= 'RequestResponse'
)
{'statusCode': 200, 'body': '"Hello from Lambda!"'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lambdasdk-0.1.4.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file lambdasdk-0.1.4.tar.gz
.
File metadata
- Download URL: lambdasdk-0.1.4.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35008a72b5595e11d02e5fcb062235f99f7dc6f666b9d4010965b5d64b7f50de |
|
MD5 | 966362dbeb51f25b75ba18d410d7a308 |
|
BLAKE2b-256 | 26c2c1aae1ebb569d429011cc81ba1967c11dcf5e98f9736c2af6b4d8b0bb46e |
File details
Details for the file lambdasdk-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: lambdasdk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd5c0af0fa9bc9321825cd3a2a1feafffb6b424156efdf2f35ed0742660f786 |
|
MD5 | 5b7394ca380aac9eaa580166e56e7543 |
|
BLAKE2b-256 | caa76c1cfea134c9af8fa2a386d6980eec8e2aec7e3e551d16f51839c231f8b4 |