Skip to content

ItsAML/MarzbanUserTemplateManagment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Marzban User Template Manager

| Simply Show, Add, Modify and Delete User Templates With This Script.

Table of Contents

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 HTTP

About

This 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.

Prerequisites

Python 3.0+ with requests library required. you cant run the script on python 2.0

Linux

# 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

Windows

# 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

About

Simply Show, Add, Modify and Delete User Templates With This Script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages