Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluid_jsonrpc-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file fluid-jsonrpc-0.0.1.tar.gz.

File metadata

  • Download URL: fluid-jsonrpc-0.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fluid-jsonrpc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 94dba57b2c8ae2bd47dd73048470e3a43d4c98f358f4780e9add90472f589235
MD5 b93b4a90b4d15b090119d2c39aaf7186
BLAKE2b-256 e4b493ec38c4afb28f0995b41926cacc0b51f61b34b5f71346ca2880a56c8e46

See more details on using hashes here.

File details

Details for the file fluid_jsonrpc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fluid_jsonrpc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for fluid_jsonrpc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00ba05f446d78c74b223737deac367cfd7ff0fccc1512ec3f1cc55685e8e0086
MD5 8bbf8d6fa0a776ceaa43674b35b20994
BLAKE2b-256 4f051abeb167c421e4d063d47cd1e49e7ee32ba77f71eab0e72e5dd89f31a839

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page