Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Plans for python? #268

Open
andres-lowrie opened this issue Aug 21, 2018 · 3 comments
Open

Plans for python? #268

andres-lowrie opened this issue Aug 21, 2018 · 3 comments

Comments

@andres-lowrie
Copy link

I notice that this doesn't support the python runtime yet...

Are there plans for python support or will that be handled by something else (some other project) ?

@dovy
Copy link

dovy commented Sep 14, 2018

It shouldn't be hard to run a python connector I would wager. Could use most of the code here...

@andres-lowrie
Copy link
Author

so we're currently doing something like this:

from flask import Flask, request

from main import handle

app = Flask(__name__)


def wrapper():
    return handle(request)


wrapper.provide_automatic_options = False
wrapper.methods = ['GET', 'POST', 'PUT', 'DELETE']
app.add_url_rule('/', 'index', wrapper)

if __name__ == '__main__':
    app.run()

This has been working for us thus far... I'll look at the codebase and see how to integrate

@myselfhimself
Copy link

@andres-lowrie Thank you for this great piece of code!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants