No project description provided
Project description
Fluid JSON-RPC
Turn any function signatures into JSON-RPC requests.
import requests
from fluid import JSONRPC
dispatcher = JSONRPC(url="")
dispatcher.session = requests.Session()
@dispatcher.dispatch(name="methodName")
def method_name(foo: str, bar: int):
pass
...
result = method_name(foo="value", bar=1)
"""
The call above will make a POST request on the URL with the parameters passed:
{
"id": 0,
"jsonrpc": "2.0",
"method": "methodName",
"params": {
"foo": "value",
"bar": 1
}
}
"""
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
fluid-jsonrpc-0.0.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for fluid_jsonrpc-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00ba05f446d78c74b223737deac367cfd7ff0fccc1512ec3f1cc55685e8e0086 |
|
MD5 | 8bbf8d6fa0a776ceaa43674b35b20994 |
|
BLAKE2b-256 | 4f051abeb167c421e4d063d47cd1e49e7ee32ba77f71eab0e72e5dd89f31a839 |