项目重命名: ReelForge => Pixelle-Video

This commit is contained in:
puke
2025-10-31 10:23:38 +08:00
parent dfdba73b74
commit 136514e466
60 changed files with 384 additions and 383 deletions

View File

@@ -1,5 +1,5 @@
"""
ReelForge FastAPI Application
Pixelle-Video FastAPI Application
Main FastAPI app with all routers and middleware.
@@ -18,7 +18,7 @@ from loguru import logger
from api.config import api_config
from api.tasks import task_manager
from api.dependencies import shutdown_reelforge
from api.dependencies import shutdown_pixelle_video
# Import routers
from api.routers import (
@@ -41,24 +41,24 @@ async def lifespan(app: FastAPI):
Handles startup and shutdown events.
"""
# Startup
logger.info("🚀 Starting ReelForge API...")
logger.info("🚀 Starting Pixelle-Video API...")
await task_manager.start()
logger.info("ReelForge API started successfully\n")
logger.info("Pixelle-Video API started successfully\n")
yield
# Shutdown
logger.info("🛑 Shutting down ReelForge API...")
logger.info("🛑 Shutting down Pixelle-Video API...")
await task_manager.stop()
await shutdown_reelforge()
logger.info("ReelForge API shutdown complete")
await shutdown_pixelle_video()
logger.info("Pixelle-Video API shutdown complete")
# Create FastAPI app
app = FastAPI(
title="ReelForge API",
title="Pixelle-Video API",
description="""
## ReelForge - AI Video Generation Platform API
## Pixelle-Video - AI Video Generation Platform API
### Features
- 🤖 **LLM**: Large language model integration
@@ -113,7 +113,7 @@ app.include_router(files_router, prefix=api_config.api_prefix)
async def root():
"""Root endpoint with API information"""
return {
"service": "ReelForge API",
"service": "Pixelle-Video API",
"version": "0.1.0",
"docs": api_config.docs_url,
"health": "/health",
@@ -132,7 +132,7 @@ if __name__ == "__main__":
import uvicorn
# Parse command line arguments
parser = argparse.ArgumentParser(description="Start ReelForge API Server")
parser = argparse.ArgumentParser(description="Start Pixelle-Video API Server")
parser.add_argument("--host", default="0.0.0.0", help="Host to bind to")
parser.add_argument("--port", type=int, default=8000, help="Port to bind to")
parser.add_argument("--reload", action="store_true", help="Enable auto-reload")
@@ -142,7 +142,7 @@ if __name__ == "__main__":
# Print startup banner
print(f"""
╔══════════════════════════════════════════════════════════════╗
ReelForge API Server ║
Pixelle-Video API Server ║
╚══════════════════════════════════════════════════════════════╝
Starting server at http://{args.host}:{args.port}