Skip to main content

extensible api server

Project description

Murloc

Extensible api server

Example usage

import murloc

# Define server methods here.
# Must have (self, args) as params.
def hello(self, args):
    self.log("hello, world!")
    return f"args={args}"


# Include method routes in this dict like so.
methods = {
    "hello": hello,
}


# Main.
# -- Include methods in murloc.init() like so.
if __name__ == "__main__":
    m = murloc.init(methods=methods)
    m.listen()

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

murloc-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

murloc-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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