Skip to main content

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
  }
}
"""

Metadata

Release files for fluid-jsonrpc 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fluid-jsonrpc 0.0.1
File Size Uploaded
fluid-jsonrpc-0.0.1.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluid-jsonrpc 0.0.1
File Interpreter ABI Platform
fluid_jsonrpc-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 kB

Release files / fluid-jsonrpc-0.0.1.tar.gz

Download URL fluid-jsonrpc-0.0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
94dba57b2c8ae2bd47dd73048470e3a43d4c98f358f4780e9add90472f589235
BLAKE2b-256 checksum
How to use checksums
e4b493ec38c4afb28f0995b41926cacc0b51f61b34b5f71346ca2880a56c8e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

Release files / fluid_jsonrpc-0.0.1-py3-none-any.whl

Download URL fluid_jsonrpc-0.0.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00ba05f446d78c74b223737deac367cfd7ff0fccc1512ec3f1cc55685e8e0086
BLAKE2b-256 checksum
How to use checksums
4f051abeb167c421e4d063d47cd1e49e7ee32ba77f71eab0e72e5dd89f31a839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page