buyiyihu / moonfinger

A RPC tool for HTTP API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

moonfinger

A RPC tool for HTTP API

Automatically handle authentication, result mashaller, and pages.

Usage

from moonfinger import RPCService, communicate

class SomeHTTPService(RPCService):
    NAME = "service_name"
    SCHEME = "https"

    ADDRESS = "localhost"

    @classmethod
    @communicate("/path/to/api", params={"param": "ABC"})
    def get_all_experiment_list(cls, *, response) -> list:
        return response.json()

About

A RPC tool for HTTP API

License:MIT License


Languages

Language:Python 100.0%