Vorto plugin utility toolkit: QingLong client, MaPay client, QR code generator, payment config reader.
Project description
vorto-utils
Vorto 插件公共工具包,提供青龙面板操作、码支付、二维码生成、支付配置读取等通用功能。
安装
pip install vorto-utils
快速使用
from vorto_utils import generate_qrcode_url, get_pay_config, QingLongClient, MaPayClient
# 生成二维码
url = generate_qrcode_url("https://example.com")
# 读取支付配置
config = get_pay_config()
# 青龙面板操作
ql = QingLongClient("S_NKF", "http://host:5700丨client_id丨client_secret")
ql.update_env("13800138000", "phone#token#unifyId", "备注信息")
# 码支付
client = MaPayClient(gateway="https://pay.example.com", pid="1001", key="your_key")
result = client.create_order(8.88, "alipay", "order_123", "商品名称")
模块说明
| 模块 | 功能 |
|---|---|
qrcode |
二维码图片URL生成 |
pay_config |
从 middleware 读取支付方式配置 |
qinglong |
青龙面板环境变量 CRUD |
mapay |
码支付下单、查单、验单 |
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
vorto_utils-0.1.7.tar.gz
(14.0 kB
view details)
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 vorto_utils-0.1.7.tar.gz.
File metadata
- Download URL: vorto_utils-0.1.7.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3008981760d6df7d8acf75a481d5c23587f39b056e73ec3630810fd8889b6c9
|
|
| MD5 |
80ae7d68809e258b0b1e5157889ab50f
|
|
| BLAKE2b-256 |
b16d3b3d62d23905b33c2e7cc9a34405cf59fe1c2bb99c8b424b11fd7dd638ba
|
File details
Details for the file vorto_utils-0.1.7-py3-none-any.whl.
File metadata
- Download URL: vorto_utils-0.1.7-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52954ee2392e1a87a3340a7e6517b5d34b848e4da3efe9bd057b374283479ef0
|
|
| MD5 |
ab3d48e06c58c1c82ed3518a778e2f29
|
|
| BLAKE2b-256 |
c83d538798519a766a3449f958aa06059b62cd306d5c62701323b94275dd6b33
|