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.4.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for flask_rpc-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63c17d4cdd645430e97e0ea0bc5d95d31e18f2eb9a7486ba2d6276327991c6b |
|
MD5 | 0e81513b683afae794a9f1166d384457 |
|
BLAKE2b-256 | 6122ff52c5921c69e4b868b8e9d3e9c14311187c1556b0de1f7a66f3764b6039 |