Vorto plugin utility toolkit: QingLong client, MaPay client, QR code generator, payment config reader.
Project description
vorto-utils
Vorto 插件公共工具包,提供青龙面板操作、码支付、二维码生成、支付配置读取等通用功能。
当前版本:0.1.9
安装
pip install vorto-utils
快速使用
from vorto_utils import (
generate_qrcode_url,
get_pay_config,
QingLongClient,
DumbPanelClient,
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", "备注信息")
# DumbPanel 操作(支持 group 分组参数)
dp = DumbPanelClient("S_NKF", "http://host:8000丨app_key丨app_secret")
dp.update_env("13800138000", "phone#token#unifyId", "备注信息", group="顺丰")
# 码支付
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 |
dumbpanel |
DumbPanel 环境变量 CRUD(支持 group) |
mapay |
码支付下单、查单、验单 |
发布
项目根目录提供 PowerShell 发布脚本:publish.ps1。
示例:
$env:TWINE_TOKEN = "pypi-..."
.\publish.ps1 -Version 0.1.10
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.2.1.tar.gz
(15.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.2.1.tar.gz.
File metadata
- Download URL: vorto_utils-0.2.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb23134f298bc4b5592e93525b84ed50e9d28e14fd2f223bf79a114f9f9ab928
|
|
| MD5 |
8c0565d9d5cb869aa13ee9e50198e1c2
|
|
| BLAKE2b-256 |
839dfedb8616f216723273c46a1ae0efaf626672c6fbb6e997144eb343f53210
|
File details
Details for the file vorto_utils-0.2.1-py3-none-any.whl.
File metadata
- Download URL: vorto_utils-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
617c2b382be4c7fc70be18a8cd14ad602c31a43288bd3fb20fd01c6bc989af14
|
|
| MD5 |
a00c2a72f8eb7b30a42f95f5d3f9fae7
|
|
| BLAKE2b-256 |
117dec83c802f43ba9dff270720311d935f2e1b4e050e69e1f320ed29de4e292
|