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.3.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for flask_rpc-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ccebb4d69b49f972e01755435e29a0e0d5849c08d4e96999330fcd9cd500f7 |
|
MD5 | 4565a87ceded51e28c905f48688bfd2d |
|
BLAKE2b-256 | 2bdde0ff4c3bc3d2416650a793ab62be44d8ca87eea2634644f15dda83e3ff4a |