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

  • misaka

  • 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.11.0.tar.gz (55.9 MB view details)

Uploaded Source

Built Distribution

lambda_packages-0.11.0-py2-none-any.whl (57.0 MB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for lambda_packages-0.11.0.tar.gz
Algorithm Hash digest
SHA256 b9f07510374cf98ad7586242c2408c927cb24ef111e7411a1e449ecafe971dcc
MD5 e729984ff480a535bd7e2b51699b0eff
BLAKE2b-256 48f2396e356e10de7c604e4c90f61716472788f018fa7395a678efad8f6c89ea

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for lambda_packages-0.11.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ab4456ffeb2ca4c2c2e4768ab01f652f873850092d8df6fa2b815260e91cc1b6
MD5 4d3653af03179d88a52469e3ee1ae50d
BLAKE2b-256 2b9fcd7873c26fe781fba426b5beb6c24fecd2ce0727ad7381caac496bf7c86f

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