simple clacks web server with custom interface

PHOTO EMBED

Tue Apr 04 2023 22:57:15 GMT+0000 (Coordinated Universal Time)

Saved by @MaVCArt #python

import clacks_web
from interface import MySimpleRESTAPI

# -- as you can see, with the clacks_web library, making a simple REST API web server is dead easy.
server = clacks_web.simple_rest_api('My First Web Server', 'localhost', 9000)
server.register_interface('tutorial', MySimpleRESTAPI())
server.start(blocking=True)
content_copyCOPY