#!/usr/bin/env python3 """ Quixotic Python Backend - Main Entry Point """ import os import uvicorn from backend.api import app def main(): """Main entry point""" port = int(os.getenv("PORT", 8000)) host = os.getenv("HOST", "0.0.0.0") print(f"🚀 Starting Quixotic Python Backend on {host}:{port}") print(f"📁 Downloads directory: {os.path.abspath('downloads')}") print(f"🌐 Access URL: http://localhost:{port}") # Run the FastAPI app with uvicorn uvicorn.run( app, host=host, port=port, log_level="info", access_log=True ) if __name__ == "__main__": main()