mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
* test: run python via poetry to ensure the poetry install is working * test: assert proper python bin in PATH across all .venv python examples * doc: helpful mise backend inspection tip * test: snapshot update
17 lines
354 B
Python
17 lines
354 B
Python
from flask import Flask
|
|
import os
|
|
|
|
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 Flask!"
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=3333)
|
|
|
|
print("Hello from Python UV!")
|