Skip to main content

Prebuilt dependencies for running some common image utilities in AWS Lambda

Project description

# lambda-image-utils-prebuilt A prebuilt set of the dependencies needed to run some common image utilities in AWS Lambda. This solves two main problems:

  1. Builds some dependencies that need to be built in the AWS Lambda runtime environment.

  2. Works arounds AWS Lambda’s source code size limitation.

## Usage pip install lambda-image-utils-prebuilt

Then, simply place this as the first import in your lambda function’s handler:

import lambda-image-utils-prebuilt.unpack

## How it Works The libs needed for face_recognition are built inside a Docker container that matches the environment in which AWS Lambda code is ran.

Since the dependencies for face_recognition exceed the source code size limit of AWS Lambda functions, we do some ridiculousness to make it work. We zip up the deps and then unzip them at runtime.

The dependencies in prebuilt-requirements.txt are generally large dependencies, therefore, these are included as well so that you can keep the source code size of your Lambda function small enough to deploy.

The unzipping of these deps at runtime will add overhead to your function’s start time. So, please keep that in mind in deciding whether to use this package.

## See it in Action [Here](https://github.com/JonathanPorta/lambda_face_recognition_example) is an example project that uses the [face_recognition portion](https://github.com/JonathanPorta/lambda_face_recognition_prebuilt) of this project as one of its dependencies.

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-image-utils-prebuilt-0.0.16.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file lambda-image-utils-prebuilt-0.0.16.tar.gz.

File metadata

  • Download URL: lambda-image-utils-prebuilt-0.0.16.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/37.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.6.5

File hashes

Hashes for lambda-image-utils-prebuilt-0.0.16.tar.gz
Algorithm Hash digest
SHA256 21dc6701612831071e6a4831d057c3ed5e1d70c7701e99805f1f4c305ec6e19d
MD5 09c30e0590ab8b4496d1635b8da7edf5
BLAKE2b-256 79b7af4522eae60bdf1ed845fe0fda8ab7dc9de83bf08142fa72218a7db5de0c

See more details on using hashes here.

Supported by

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