Skip to content

buyiyihu/moonfinger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages