V2Kit: A Lightweight Toolkit for V2Ray Config Manipulation
Project description
Overview
V2Kit is a lightweight and extensible Python toolkit for working with V2Ray proxy configurations and subscriptions. It provides a clean API for common operations such as protocol detection, configuration validation, config relabeling, and subscription encoding/decoding. The project is designed with simplicity, predictability, and composability in mind, making it suitable for automation scripts, proxy pipelines, networking tools, and future extensions around V2Ray ecosystem utilities.
| PyPI Counter | |
| Github Stars |
| Branch | main | dev |
| CI |
Installation
Source Code
- Download Version 0.1 or Latest Source
pip install .
PyPI
- Check Python Packaging User Guide
pip install v2kit==0.1
Usage
from v2kit import (
decode_subscription,
encode_subscription,
is_vmess,
relabel,
)
config = "vmess://eyJhZGQiOiIxMjcuMC4wLjEiLCJwcyI6Im9sZCJ9"
new_config = relabel(config, "Germany-1")
if is_vmess(new_config):
print("VMESS config detected")
subscription = encode_subscription([new_config])
configs = decode_subscription(subscription)
Issues & Bug Reports
Just fill an issue and describe it. We'll check it ASAP!
- Please complete the issue template
Show Your Support
Star This Repo
Give a ⭐️ if this project helped you!
Donate to Our Project
Bitcoin
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum
0xcD4Db18B6664A9662123D4307B074aE968535388Litecoin
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDoge
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTron
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7Ripple
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coin
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether
0xcD4Db18B6664A9662123D4307B074aE968535388Dash
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellar
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLZilliqa
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5Coffeete
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
0.1 - 2026-05-16
Added
is_vmessfunctionis_vlessfunctionis_trojanfunctionis_shadowsocksfunctionrelabelfunctionencode_subscriptionfunctiondecode_subscriptionfunction
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file v2kit-0.1.tar.gz.
File metadata
- Download URL: v2kit-0.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49d5e814ef1f9175c1cdc57f0b6a73f994dfacc626eb2942ea6354237073a9f7
|
|
| MD5 |
3deb2427571043d7f4b3f42da0c704f9
|
|
| BLAKE2b-256 |
67c0786bc16fee87d7096b845f3a6504e54c37c6d3c6fe6ec1669faeda4e5de2
|
File details
Details for the file v2kit-0.1-py3-none-any.whl.
File metadata
- Download URL: v2kit-0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
478684c917b253a4936e0032ea55802804451df4f56f42c7ccd0222384195337
|
|
| MD5 |
a069ff2b43fca3e7f25f482dde20a8e6
|
|
| BLAKE2b-256 |
e487f4649cedc4a61413756ae096f90a8996cb8c1c7bddb48e290aa95c5a3dab
|