Houdini 20.0 Python scripting hou hou.webServer

hou.webServer.requestShutdown HOM function

Tells Houdini’s web server to shut down after serving all open requests.

requestShutdown()

Call this function from a URL handler or API function to tell the server to shut down when it is finished handling all active requests. This function returns immediately.

You can use this function along with a supervisor process that restarts hython to periodically free up the memory consumed by the Houdini session.

hou.webServer

Classes

Starting and Stopping

Handling Web Requests and Returning Responses

API Calls

  • hou.webServer.apiFunction()

    Decorator for functions that can be called through an API endpoint on Houdini’s web server, returning JSON or binary responses.

  • hou.webServer.APIError

    Raise this exception in apiFunction handlers to indicate an error.