Skip to content

mantlelabs/aws-lambda-python-packages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Also see mkdocs!

aws-lambda-python

How to create powerful AWS lambda python function that fits in a 250Mb package

More info: https://blog.mapbox.com/aws-lambda-python-magic-e0f6a407ffc6

Requirement

Lambda package

Rasterio, Fiona, other

Lightweight python package with rasterio, fiona and a few others

Updated to use the lambci base image!

  • Modules:
    • numpy
    • rasterio
    • fiona
    • pandas
    • pymongo
    • requests
  • Command: make r_f
  • Package size: 41Mb (129Mb)

Rasterio

Lightweight python package with rasterio

  • Modules:
    • numpy
    • rasterio (v1.0a12)
  • Command: make rasterio
  • Package size: 26.8Mb (95.9Mb)

Image

Adding simple image processing modules

  • Modules:
    • numpy
    • rasterio (v1.0a12)
    • Wand (ImageMagick)
    • Pillow (PIL)
  • Command: make image
  • Package size: 32.7Mb (113.8Mb)

OpenCV

Image processing using OpenCV

  • Modules:
    • numpy
    • rasterio (v1.0a12)
    • python-OpenCV (cv2)
  • Command: make opencv
  • Package size: 51.5Mb (166.8Mb)

Geospatial

A complete suite of geospatial modules, using GDAL minimal driver support.

  • Modules:
    • numpy
    • rasterio (v1.0a12)
    • shapely
    • mercantile
    • supermercado
    • fiona
    • psycopg2
  • Command: make geospatial
  • Package size: 27.7Mb (87.9Mb)

Image Analysis / Machine learning ready

  • Modules:
    • numpy
    • scipy
    • scikit-learn
    • rasterio
  • Command: make scipy
  • Package size: 44.8Mb (148Mb)

Links

About

How to create powerful AWS lambda python function that fits in a 250Mb package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 65.1%
  • Roff 18.5%
  • Python 16.4%