Files
quixotic/main.py
Andrey Kondratev d4debf9b63 python
2025-09-09 15:39:28 +05:00

29 lines
654 B
Python

#!/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()