The All-in-One Server Framework is a versatile and comprehensive solution designed for managing, controlling, and monitoring various server-related operations. It supports multiple types of connections, including TCP, UDP, Websockets, HTTP, HTTPS, SSH, and FTP.
The framework consists of several modules, each serving a specific purpose, providing functionalities such as directory management, process management, emergency handling, mode management, logging, server settings, and system monitoring.
DirectoryManager.py: Manages paths and directories. Handles directory listing, content retrieval, log directory management, and process management.
Emergency.py: Provides emergency handling functionalities. Manages paths and processes in emergency situations. Includes classes for handling paths and processes during emergencies.
Modes.py: Manages different operation modes. Lists and selects available modes. Extracts folders and files from input strings.
Log.py: Handles logging functionalities. Logs messages at different levels. Configures and initializes the logging engine.
settings.py: Defines classes for managing server settings. Includes settings for various server types such as TCP, UDP, Websockets, HTTP, HTTPS, SSH, and FTP.
SysMonitor.py: Monitors system-related information in real-time. Checks CPU usage, system uptime, sensors, battery, fans, brightness, memory, disk, network, OS info, logged users, and GPU.
Engine.py: Manages script execution and monitoring. Controls running scripts, including starting, stopping, renaming, and monitoring.
Clone the repository.
git clone https://github.com/kassam-99/All_in_One_Server.git
Install dependencies
pip install -r requirements.txt
Launch a server:
cd Admin
python Dashboard.py
Or to connect to a server with administrative privileges:
python Admin.py
Table of Contents
- List Available Modes
- Select a Mode
- Choose a Script to Run
- Select a Terminal
- Add Script Parameters (Optional)
- View all script(s) - Mapping in any mode
Managing Paths: Use Paths_Manager in DirectoryManager.py to add, remove, and reset paths. Utilize EmergencyPathManager in Emergency.py for emergency path management.
Real-time System Monitoring: Use Sensor in SysMonitor.py to check CPU, memory, disk, network, and other system-related information in real-time. Monitor directories and logs with RealTime_Dir and RealTime_Process in SysMonitor.py.
Server Settings:
Customize server settings for different types (TCP, UDP, Websockets, HTTP, HTTPS, SSH, FTP) using Server_Settings in settings.py.
Make sure to insert this code in your script:
import os
import sys
project_root = os.path.abspath(__file__)
index = project_root.find("All_in_One_Server")
if index != -1:
core_dir = project_root[:index+6]+"Core"
sys.path.append(core_dir)
By doing that, you can import any class from any Settings.py or any script you wish!
Example:
"All_in_One_Serve/TCP_Chat/test.py"
import os
import sys
project_root = os.path.abspath(__file__)
index = project_root.find("All_in_One_Server")
if index != -1:
core_dir = project_root[:index+6]+"Core"
sys.path.append(core_dir)
from Settings import TCP_Server()
code....
while True:
server = TCP_Server()
server.start_TCP_Server()
client_socket, addr = server.tcp_handler.accept()
Script Management: Use ScriptEngine in Engine.py to start, stop, rename, and monitor running scripts.
Feel free to contribute by opening issues, submitting pull requests, or providing feedback. We welcome any improvements or additional features that enhance the functionality and usability of the framework.