Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ItsAML/MarzbanUserTemplateManagment
Simply Show, Add, Modify and Delete User Templates With This Script.
https://github.com/ItsAML/MarzbanUserTemplateManagment
Last synced: 9 days ago
JSON representation
Simply Show, Add, Modify and Delete User Templates With This Script.
- Host: GitHub
- URL: https://github.com/ItsAML/MarzbanUserTemplateManagment
- Owner: ItsAML
- Created: 2023-10-03T10:30:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T10:22:25.000Z (about 1 year ago)
- Last Synced: 2023-10-17T19:37:06.172Z (about 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-freedom - Marzban User Template Management
- awesome-freedom - Marzban User Template Management
README
# Marzban User Template Manager
| Simply Show, Add, Modify and Delete User Templates With This Script.
## Table of Contents
- [About](#about)
- [Prerequisites](#prerequisites)
- [Linux](#Linux)
- [Windows](#windows)Make Sure To Change these variables before runing the script.
```python
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
```bash
# 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
```bash
# 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
```
# Support This ProjectIf you find my GitHub repository helpful and would like to support my work, you can make a donation using the following cryptocurrencies:
- **USDT (TRC20):** TPXehJNLDqhHBAfs6v5KKHKXX4fZ3uhVGK
- **TRX (TRC20):** TPXehJNLDqhHBAfs6v5KKHKXX4fZ3uhVGKYour contributions are greatly appreciated and will help me continue developing and maintaining this project. Thank you for your support! 🙌