examples/python/functions/minimal_service/function.py to
package a Python HTTP server, start it as a managed service, and fetch its
public URL.
Setup
CLI
0.0.0.0:8000, exposes /health, and uses
nullspace.Policy(public_url=True) so nullspace functions url can return a public
endpoint. Expected output includes a public URL, a ready service status, and a
/health response with {"ok": true}.
Python
The companionrun.py script uses the same function contract through the SDK: