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.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for flask_rpc-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beea3d2e7068c25de7cfcb17b98a3e4eb6581760824e93fc13cf8a901f1d4d2c |
|
MD5 | 7f0a2ff41a66823c80bf4b6649206565 |
|
BLAKE2b-256 | cb5ce8f9f3fb90d56849e0f952db2adb506ffd17befdc663ed01d3837c0a19e9 |