Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 455 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 455 Bytes

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