Turn Flask into a simple RPC server
Project description
📣 Flask-RPC
Flask Remote Procedure Call (RPC) is a simple library that allows you to expose functions in your Flask application to be called remotely. It is designed to be straightforward to use and easy to understand.
Flask-RPC does not follow any current already existing RPC standard, but uses its own standard, and primarily works with JSON over HTTP POST requests to call functions.
The typical request/response cycle is as follows:
Request
{
"frpc": 0.1,
"function": "add_numbers",
"data": [1, 2, 3]
}
Response
{
"frpc": 0.1,
"ok": true,
"message": "Function 'add_numbers' executed successfully",
"data": 6
}
Installation
pip install flask-rpc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_rpc-0.1.2.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for flask_rpc-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c84eb1cdfb4410bddb4a60d000eafb2d6c7f7abd2bfac698cca5c34fbbd2b9e |
|
MD5 | 65ff52dc21892aab07e97e5b403c4776 |
|
BLAKE2b-256 | cefdf90247959d8937aada8fc1f96c492c45362114dfe059345d0be7d5d4c6b4 |