Giter Club home page Giter Club logo

aws-lambda-lxml's Introduction

aws-lambda-lxml

AWS Lambda precomiled binaries for lxml built for python 2.7 and python 3.6 runtimes.

libxml2-dev and libxslt-dev are not needed as they are included by default in the machines that run lambdas.

Example usage

  1. Put the lxml directory in the root of your lambda package
  2. Import lxml and use as usual
from lxml import etree


def handle(event, context):
    return etree.fromstring(event)

Build it yourself

This repo contains a build.sh script that's intended to be run in an Amazon Linux docker container, and build lxml for py27 and py36 for use in AWS Lambda.

To build the latest lxml (or any other platform-specific compiled libraries like numpy), run the following:

$ docker run -v $(pwd):/outputs -it lambci/lambda:build-python{2.7|3.6} \
      pip install lxml -t /outputs/

Once you run this, you'll have a folder called lxml (you can ignore the other one with the dist-info), which is the one you are going to place in the root of the lambda package as specified in the example

aws-lambda-lxml's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aws-lambda-lxml's Issues

Question

Inside of the Python 3.8 folder, it says py36 and the python extensions also show 36. I'm assuming the content inside the Python 3.8 folder is really Python 3.6 content. Therefore, I would need to have a Lambda Python 3.6 runtime in order to use it and the Lambda Python 3.8 will NOT work. Is that accurate?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.