Skip to main content

deploying functions made easy

Project description


Firefly is a tool to expose Python functions as RESTful APIs.


It can be installed using pip.

..code:: bash

$ pip install firefly-python


Write a python function:

..code:: python

def square(n):
return n*n

And run it with firefly:

..code:: bash

$ firefly sq.square
[2017-06-08 12:45:11 +0530] [20237] [INFO] Starting gunicorn 19.7.1
[2017-06-08 12:45:11 +0530] [20237] [INFO] Listening at: (20237)

Firefly provides a simple client interface to interact with the server.

..code:: python

>>> from firefly.client import Client
>>> client = Client("")
>>> client.square(n=4)

Or, you can use the API directly:

..code:: bash

$ curl -d '{"n": 4}'


* `Documentation <>`_
* `Github <>`_

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for firefly-python, version 0.1.15
Filename, size File type Python version Upload date Hashes
Filename, size firefly_python-0.1.15-py3-none-any.whl (12.5 kB) File type Wheel Python version 3.7 Upload date Hashes View
Filename, size firefly-python-0.1.15.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page