This commit is contained in:
Andrey Kondratev
2025-09-09 15:39:28 +05:00
parent 3b2d5ece24
commit d4debf9b63
33 changed files with 1274 additions and 9585 deletions

29
main.py Normal file
View File

@@ -0,0 +1,29 @@
#!/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()