Files
pack/examples/python-poetry/main.py
T
2025-03-07 13:43:11 -05:00

15 lines
323 B
Python

import os
from flask import Flask
path = os.environ['PATH']
assert path.startswith("/app/.venv/bin"), f"Expected PATH to start with /app/.venv/bin but got {path}"
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello from Python Poetry!"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8080)