Serve & Watch
serve runs a Python entrypoint as a server through uv.
putnami serve .
putnami serve . --entrypoint src/server.pyEntrypoint selection
The extension uses:
project.mainwhen configuredsrc/main.pyby default--entrypoint <path>when explicitly provided
Options
| Option | Use |
|---|---|
--entrypoint <path> |
Override the Python entrypoint |
--port <number> |
Set the server port |
For FastAPI projects created from python-server, the template provides the expected server shape and test setup.