rorodata / firefly

function as a service
http://rorodata.github.io/firefly
Apache License 2.0
194 stars 30 forks source link

Implement firefly on top of flask #81

Open anandology opened 6 years ago

anandology commented 6 years ago

The current way of specifying functions in command-line and in config file is very limiting. Lets create a new way to build firefly applications by building it on top of Flask. That gives it the ability to use Flask for extending it for any purpose, mix and match with other Flask applications.

You create it using:

app = Firefly() # or Firefly(__name__)

or

app = Firefly(flask_app=flask_app)

The flask app can be accessed anywhere by using app.flask_app.

app.function should intern call self.flask_app.route.

anandology commented 6 years ago

app.run and app.__call__ should proxy self.flask_app.run and self.flask_app.__call__ respectively.

shivankgtm commented 5 years ago

Hey, I liked the project idea. is this project still in progress as the last comment is of Oct 18?

palnabarun commented 5 years ago

Hi @Shivank98, firefly is still a maintained project. Feel free to file a PR for this.

shivankgtm commented 5 years ago

Sure, though I haven't gone through much of source code, will take some time in that. doing it for learning good software development. hope time is not a constraint.