| Simply Show, Add, Modify and Delete User Templates With This Script.
Make Sure To Change these variables before runing the script.
DOMAIN = 'YOUR_DOMAIN'
PORT = 'YOUR_PORT'
USERNAME = 'YOUR_USERNAME'
PASSWORD = 'YOUR_PASSWORD'
HTTPS = True # Set this to True for HTTPS, False for HTTPThis script is designed to automate the management of user templates using the Marzban API. It securely logs into an admin panel, retrieves a list of user templates, adds new ones, modifies existing templates, and can also delete user templates when needed. It provides detailed logging for each operation, making it a valuable tool for efficiently managing user accounts in a web-based environment.
Python 3.0+ with requests library required. you cant run the script on python 2.0
# Clone the Repository
git clone https://github.com/ItsAML/MarzbanUserTemplateManagment.git
# Change Directory
cd MarzbanUserTemplateManagment
# Install pip (if not already installed)
wget -qO- https://bootstrap.pypa.io/get-pip.py | python3 -
# Install Dependencies
python3 -m pip install -r requirements.txt
# Run the Script
python3 main.py# Clone the Repository
git clone https://github.com/ItsAML/MarzbanUserTemplateManagment.git
# Navigate to the Repository Directory
cd MarzbanUserTemplateManagment
# Install Python (if not already installed)
# Download and install Python from https://www.python.org/downloads/
# Ensure you add Python to your system's PATH during installation
# Install Dependencies
pip install -r requirements.txt
# Run the Script
python main.py