VUMP-gRPC-client
This is a python gRPC client for V2Ray/V2Fly gRPC API.
Installation
pip install -U VUMP-gRPC-client
Example
from vump_grpc_client import VUMPClient, utils, exceptions
v2ray_client = VUMPClient('1.2.3.4', 1234)
user_id = utils.generate_random_user_id()
user_email = utils.generate_random_email()
inbound_tag = 'inbound-tag'
# Get stats
print(utils.human_readable_bytes(v2ray_client.get_client_download_traffic('user-email@mail.com')))
print(utils.human_readable_bytes(v2ray_client.get_client_upload_traffic('user-email@mail.com')))
print(utils.human_readable_bytes(v2ray_client.get_inbound_download_traffic(inbound_tag)))
print(utils.human_readable_bytes(v2ray_client.get_inbound_upload_traffic(inbound_tag)))
print(utils.human_readable_bytes(v2ray_client.get_total_download_traffic()))
print(utils.human_readable_bytes(v2ray_client.get_total_upload_traffic()))
# Add & Remove client
user = v2ray_client.add_client(inbound_tag, user_id, user_email)
if user:
print(user)
v2ray_client.remove_client(inbound_tag, user_email)
# restart logger
v2ray_client.restart_logger()
Metadata
Release files for VUMP-gRPC-client 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| VUMP-gRPC-client-1.0.2.tar.gz | 42.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| VUMP_gRPC_client-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 154.1 kB
Release files / VUMP-gRPC-client-1.0.2.tar.gz
| Download URL | VUMP-gRPC-client-1.0.2.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7ca6120dd09b16a35d9b24b51a6d74476383bd27f373b0409c82665d50f18f3
|
|
BLAKE2b-256 checksum How to use checksums |
6b964ab596540ce68571d3f7413a8926a6b2fd529758a6cea89627e932c8a0d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / VUMP_gRPC_client-1.0.2-py3-none-any.whl
| Download URL | VUMP_gRPC_client-1.0.2-py3-none-any.whl |
|---|---|
| Size | 111.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eec6bf417c723f1a095a7623b89b453d8f094d9e23cc69ab5705d36fdf099566
|
|
BLAKE2b-256 checksum How to use checksums |
e2736a4f9d1746c84080bc7ce9c4709c6eff6c6ccf36735d3326e28d1d8a1a69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|