Skip to content

Repository files navigation

Logo

lambda-packages

Build StatusPyPISlack

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

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

Installation

pip install lambda-packages

Usage

To use the packages with your projects, 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.

fromlambda_packagesimportlambda_packagesprintlambda_packages['psycopg2']['version'] # 2.6.1printlambda_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:

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages