A small FastAPI service that demonstrates internal DevOps utilities such as system metrics (CPU, memory, disk). It also includes an endpoint to fetch AWS resources information. The project is organized to keep routes, services, and app configuration separated for clarity and testability.
- Minimal FastAPI app with modular routers
/metricsendpoint returning CPU, memory, and disk usage (powered bypsutil)/s3endpoint returning AWS S3 bucket info (powered byboto3)- Clean separation between request handling (routers) and business logic (services)
Prerequisites:
- Python 3.10+ (or compatible)
- Git
- awscli with user creds
Setup:
git clone repo-url cd Internal-DevOps-Utility-API-Python-Project
python -m venv myEnv myEnv\Scripts\activate
pip install -r requirements.txt
aws configure -> provide your AWS Access Key, Secret Key for user
python main.py
Open API docs: http://localhost:8000/docs For better view : http://localhost:8000/redocs