Coder Social home page Coder Social logo

lambdev's People

Contributors

alexandredewilde avatar justinsantoro avatar

lambdev's Issues

Make compatible with Python3

Currently lambdev only works in Python2.7 due to cStringIO not being available in python3.

Relevant code: core.py

def zipit():
    buf = cStringIO.StringIO()
    with zipfile.ZipFile(buf, 'w') as ziph:
        for f in files:
            ziph.write(f, basename(f))
    buf.seek(0)
    return buf.read()

Local Testing of Lambda Functions

A feature to avoid uploading to AWS each time to test.

Amazon is working on allowing the testing of lambda functions locally with SAM CLI which depends on docker-lambda.

SAM CLI is in beta and is poorly documented, may be best to write own wrapper around docker-lambda.

Write Tests

containerized testing of file parsing and zipping and python version compatability

Better Error Handling

  • catch boto 3 errors and provide more helpful error messages
  • catch missing lambdevignore.txt file
  • catch missing function_name.txt file

Automatically pull required third party packages on build

  • Detect project runtime
  • Determine required third party packages
  • Install packages into deployment package directory
  • Copy project files into deployment package directory

This could be done in a similar manner to Dockter
(ie If python project, use pip to install packages in requirements.txt)

Doesnt work when packaging with non-standard libraries

There is a problem with acquiring the root directory of the project file. After the directory is zipped, the working directory is within the last directory that was parsed through for zipping and the root of the project is lost.

Maybe just store the root at import if it does not already exist in a file on first run.

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.