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:

  • bcrypt

  • cffi

  • cryptography

  • LXML

  • MySQL-Python

  • numpy

  • OpenCV

  • Pillow (PIL)

  • psycopg2

  • PyCrypto

  • PyNaCl

  • 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. As a bonus, Zappa now also provides support for manylinux wheels, which adds support for hundreds of other packages.

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.10.1.tar.gz (55.8 MB view details)

Uploaded Source

Built Distribution

lambda_packages-0.10.1-py2-none-any.whl (56.9 MB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for lambda_packages-0.10.1.tar.gz
Algorithm Hash digest
SHA256 99bbba14107ded538f83fbad6d8188856f37aa5647ea118502aaf5c11525a9b7
MD5 4dca04722a99f891507e35f876c84f05
BLAKE2b-256 e72497954a75352e1fe09f7574d3a2106ab113225d20331ddfe00332c19d9156

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for lambda_packages-0.10.1-py2-none-any.whl
Algorithm Hash digest
SHA256 aa261563775f4f432bfe51abaa82fb1e038603b2dbc7395bebff87a12423b3cf
MD5 493a58504fa2ca96834b49c575d8076b
BLAKE2b-256 09890db5f5dbd07d002ae35e396057e281ae7f18b65181f9e4e5cfe54ef226ef

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