Code Generation You can use the lepo.codegen module to generate a handler stub file from an OpenAPI YAML/JSON file. Command line usage python -m lepo.codegen swagger.yaml > handlers.py