Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lambdasdk, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size lambdasdk-0.1.4-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lambdasdk-0.1.4.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page