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
Release history Release notifications | RSS feed
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)
Built Distribution
murloc-0.0.1-py3-none-any.whl
(3.1 kB
view hashes)