Skip to main content

AWS Lambda Packages

Project description

.. figure:: http://i.imgur.com/AlmKP2q.png
:alt: 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
- datrie\_extended
- LXML
- misaka
- MySQL-Python
- numpy
- OpenCV
- Pillow (PIL)
- psycopg2
- PyCrypto
- PyNaCl
- pyproj
- python-ldap
- python-Levenshtein
- regex

This project is intended for use by
`Zappa <https://github.com/Miserlou/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 <https://github.com/Miserlou/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 <https://blog.zappa.io/posts/zappa-adds-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.

.. code:: python

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 <https://github.com/Miserlou/lambda-packages/blob/master/lambda_packages/cryptography/build.sh>`__
useful as a starting point.

Useful targets include:

- MongoEngine
- pandas
- scipy
- `scikit-learn <https://serverlesscode.com/post/deploy-scikitlearn-on-lamba/>`__

Support / Development / Training / Consulting
---------------------------------------------

Do you need help with..

- Porting existing Python applications to AWS Lambda?
- Building new applications and services that scale infinitely?
- Reducing your operations and hosting costs?
- Training your team to use AWS and other server-less paradigms?

Good news! We're currently available for remote and on-site consulting
for small, large and enterprise teams. Please contact miserlou@gmail.com
with your needs and let's work together!

.. raw:: html

<p align="center">

.. raw:: html

</p>

.. |Build Status| image:: https://travis-ci.org/Miserlou/lambda-packages.svg
:target: https://travis-ci.org/Miserlou/lambda-packages
.. |PyPI| image:: https://img.shields.io/pypi/v/lambda-packages.svg
:target: https://pypi.python.org/pypi/lambda-packages
.. |Slack| image:: https://img.shields.io/badge/chat-slack-ff69b4.svg
:target: https://slack.zappa.io

Project details


Release history Release notifications

History Node

0.20.0

History Node

0.19.0

History Node

0.18.0

History Node

0.17.0

History Node

0.16.1

History Node

0.16.0

History Node

0.15.1

History Node

0.15.0

This version
History Node

0.14.2

History Node

0.14.1

History Node

0.14.0

History Node

0.13.0

History Node

0.12.0

History Node

0.11.0

History Node

0.10.1

History Node

0.10.0

History Node

0.9.0

History Node

0.8.0

History Node

0.7.0

History Node

0.6.1

History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
lambda_packages-0.14.2-py2-none-any.whl (58.8 MB) Copy SHA256 hash SHA256 Wheel 2.7 Feb 17, 2017
lambda_packages-0.14.2.tar.gz (57.3 MB) Copy SHA256 hash SHA256 Source None Feb 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page