Skip to main content

AWS Lambda Packages

Project description

Logo

Logo

lambda-packages

Build Status PyPI Slack

Various popular libraries, pre-compiled to be compatible with AWS Lambda.

Currently includes support for:

  • MySQL-Python

  • numpy

  • OpenCV

  • psycopg2

  • Pillow (PIL)

  • LXML

  • PyCrypto

  • PyNaCl

  • cryptography

  • cffi

  • pyproj

This project is intended for use by Zappa, but could also be used by any Python/Lambda project.

Installation

pip install lambda-packages

Usage

The best way to use these packages is with Zappa, which will automatically install the right packages during deployment, and do a million other useful things. Whatever you’re currently trying to do on Lambda, it’ll be way easier for you if you just use Zappa right now. Trust me. It’s awesome.

But, if you want to use this project the other (wrong) way, just put the contents of the .tar.gz archive into your lambda .zip.

lambda-packages also includes a manifest with information about the included packages and the paths to their binaries.

from lambda_packages import lambda_packages

print lambda_packages['psycopg2']['version']
# 2.6.1
print lambda_packages['psycopg2']['path']
# /home/YourUsername/.venvs/lambda_packages/psycopg2/psycopg2-2.6.1.tar.gz

Contributing

To add support for more packages, send a pull request containing a gzipped tarball of the package (build on Amazon Linux and tested on AWS Lambda) in the appropriate directory, an updated manifest, and deterministic build instructions for creating the archive.

You may find the build.sh script useful as a starting point.

Useful targets include:

Project details


Download files

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

Source Distribution

lambda_packages-0.9.0.tar.gz (56.0 MB view details)

Uploaded Source

Built Distribution

lambda_packages-0.9.0-py2-none-any.whl (56.0 MB view details)

Uploaded Python 2

File details

Details for the file lambda_packages-0.9.0.tar.gz.

File metadata

File hashes

Hashes for lambda_packages-0.9.0.tar.gz
Algorithm Hash digest
SHA256 d04c5e8a1d9d3ae96419e98a396fee1267af3351e88d715178cba04e73a75aa6
MD5 bc99f4082c621facfee25438e2c4c2d0
BLAKE2b-256 549db52cf64e0631bba53081f44ebb54ee5c77334af3e689294950043f0788af

See more details on using hashes here.

Provenance

File details

Details for the file lambda_packages-0.9.0-py2-none-any.whl.

File metadata

File hashes

Hashes for lambda_packages-0.9.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9d86bc04e701c0af23d51fa5012d602ffcf24b9fa84441ffa7a17f64bf3c379d
MD5 35cec64650c0ea15fc5c191b07604ef8
BLAKE2b-256 c84fcaa37956a37a020771c2e994a369641989b00030e587429cb42fb6fb611a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page