from fastapi import FastAPI from fastapi.responses import HTMLResponse # ========================== # ๐Ÿ“„ PDF Module # ========================== from app.routers.pdf import pdf_tools # ========================== # ๐Ÿ“Œ Image Module # ========================== from app.routers.image import jpgcompressor from app.routers.image import bgremover # ========================== # ๐Ÿ”’ Security Module # ========================== from app.routers.security import password_generator # ========================== # ๐Ÿ›ก๏ธ Auth Module (NEW) # ========================== from app.routers.auth import system as auth_system # ========================== # โ˜๏ธ Cloud Drive Module (NEW) # ========================== from app.routers.drive import storage # ========================== # ๐Ÿงช Test Utilities # ========================== from app.routers.testers import random_number_generator from app.routers.testers import help from app.routers.testers import calculator from app.routers.testers import server_status # <-- NEW IMPORT # ========================== # ๐Ÿš€ App Initialization # ========================== app = FastAPI() # ========================== # ๐Ÿ”— Router Registration # ========================== app.include_router(pdf_tools.router) # pdf manipulation app.include_router(jpgcompressor.router) # Image compression handler app.include_router(password_generator.router) # Generate a powerfull password that are harder to crack app.include_router(random_number_generator.router) # Random number tester app.include_router(help.router) # Helper/test info app.include_router(calculator.router) # Mini calculator service app.include_router(auth_system.router) # <-- NEW AUTH SYSTEM app.include_router(storage.router) # new cloud drive support app.include_router(server_status.router) # function to check the system app.include_router(bgremover.router) # Background Remover # ========================== # ๐ŸŒ Root Endpoint # ========================== @app.get("/", response_class=HTMLResponse) def greet_json(): return """ Easy Tools Hub | by Sam
Easy Tools Suite
Sameer Banchhor
๐Ÿ–ผ๏ธ
Image Tools
Compress JPEGs to specific sizes & remove backgrounds instantly using AI.
๐Ÿ“„
PDF Master
Merge multiple documents or rotate pages with a simple drag & drop interface.
โ˜๏ธ
Cloud Drive
Upload files locally or use Aria2 for high-speed remote server downloads.
๐Ÿ”
Security
Generate cryptographically strong passwords with advanced custom rules.
๐Ÿ“Š
Server Monitor
Real-time dashboard for CPU, RAM, Disk usage, and Network traffic.
โšก
API Docs
Explore the raw Swagger UI for testing API endpoints directly.
"""