This project leverages FastAPI to expose several system and network utilities through a web interface. It provides endpoints for executing system commands, managing files and processes, and handling network interactions.
To install the necessary dependencies, run:
pip install -r requirements.txt
Run one of the following commands to start the server:
uvicorn app:app
uvicorn app:app --host 0.0.0.0 --port 8000
fastapi run
This will start a local server, typically accessible via http://127.0.0.1:8000
.
Uvicorn and others support a --reload option that is useful during development. The --reload option consumes much more resources, is more unstable, etc. It helps a lot during development, but you shouldn't use it in production. Check the official FastAPI documentation for more details.
- /command/: Run specified system command.
- /info/{password}: Get system information such as IP, OS details, RAM, and CPU usage.
- /reboot/: Reboot the system.
- /restart_app/{password}/{process_name}: Restart a specified application.
- /update: Update the application by pulling the latest changes from the master branch in Git.
To fetch system information, you can use:
GET /info/{password}
Main FastAPI application setup and route definitions .
Defines the paths used across the application for logging and file management .
Configures logging for the application, including file and console handlers .
Contains functions for network operations like sending/receiving files via SSH, IP management, and executing commands on remote machines .
Utility functions for file management, process handling, and system information retrieval .
This project is licensed under the LICENSE.
Contributions to this project are welcome. Please ensure to update tests as appropriate.
Thanks to all the contributors who have invested their time in improving this project.
Ensure all paths and placeholders are adjusted as per your actual setup. This README is designed to give a clear overview of your application's structure and usage.