This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Easily test and deploy your AWS Lambda function.

Requirements

  • Python 2.7.x
  • pip
  • AWS CLI
  • AWS Account (For deploying)

Since AWS currently only supports Python 2.7, you must ensure your function is tested and working in Python 2.7 before deploying.

Installation

Installation should be done using pip: pip install pylambda

Once installed, make sure you setup the AWS CLI by following: http://docs.aws.amazon.com/cli/latest/userguide/installing.html

Getting Started

Once installed you can run pylambda from the console.

Run pylambda -h to see help options.

Running Your Lambda

To run your lambda function, use the following command:

pylambda run my_lambda_function.py -e event.json -n handler

Arguments:

  • file : the name of the python file that contains the lambda function. REQUIRED
  • -e, –event : the json file that contains the event data. Must be a parsable json file. OPTIONAL
  • -n, –name : the name of the function that should be called by lambda. Default ‘handler’. OPTIONAL

Deploying to S3

To deploy your code as a zip to S3 navigate to the folder where your lambda function is contained and run:

pylambda deploy my_lambda_directory_path s3://mybucket -n my_lambda_function

  • my_lambda_directory_path = The path to the directory that contains your lambda function and requirements.txt file.
  • s3://mybucket = The location of your S3 bucket. This should follow the AWS CLI for S3 locations.
  • my_lambda_function = The name of the zip file.

NOTE: you must have a proper requirements.txt within the same folder as your lambda function if you are using external libraries installed with pip. The deploy functionality will automatically bundle in these dependencies before uploading.

Arguments:

  • directory : the directory path that contains your lambda.
  • s3_bucket : the location of your S3 bucket. Must follow the AWS CLI format. REQUIRED
  • -n, –name : the name of the zip file that will be uploaded to S3.
Release History

Release History

0.2.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pylambda-0.2.1-py2-none-any.whl (19.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Mar 16, 2016
pylambda-0.2.1.tar.gz (6.3 kB) Copy SHA256 Checksum SHA256 Source Mar 16, 2016
pylambda-0.2.1.win32.exe (244.3 kB) Copy SHA256 Checksum SHA256 any Windows Installer Mar 16, 2016
pylambda-0.2.1.zip (11.5 kB) Copy SHA256 Checksum SHA256 Source Mar 16, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting