Skip to main content

Firefly
-------

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

Install
~~~~~~~

It can be installed using pip.

..code:: bash

$ pip install firefly-python

Usage
~~~~~

Write a python function:

..code:: python

# sq.py
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: http://127.0.0.1:8000 (20237)
...

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

..code:: python

>>> from firefly.client import Client
>>> client = Client("http://127.0.0.1:8000")
>>> client.square(n=4)
16

Or, you can use the API directly:

..code:: bash

$ curl -d '{"n": 4}' http://127.0.0.1:8000/square
16

Links
~~~~~

* `Documentation <https://firefly-python.readthedocs.io/>`_
* `Github <https://github.com/rorodata/firefly>`_

Release files for firefly-python 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for firefly-python 0.1.15
File Size Uploaded
firefly-python-0.1.15.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for firefly-python 0.1.15
File Interpreter ABI Platform
firefly_python-0.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / firefly-python-0.1.15.tar.gz

Download URL firefly-python-0.1.15.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00b6ede263d4f49ebbf8a6f362d834b75f3d728b827405be51a462f411cf5db0
BLAKE2b-256 checksum
How to use checksums
be63c75a7843f2155c183ef162d5496cbf6a53dfb4675fc45da6f4c3e80cb87d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / firefly_python-0.1.15-py3-none-any.whl

Download URL firefly_python-0.1.15-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4a2e4b261d9b53b1739a9fd36648b2fa6d6ae275ee9fa595038b4fb08d633a9
BLAKE2b-256 checksum
How to use checksums
2834280c0206fa79098720403f60282632d80c69e9710d436ea0ebe35df383bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.1.15 This release

2 release files

0.1.13

2 release files

0.1.12

1 release file

0.1.11

1 release file

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page