Add your description here
Project description
插件概述
nonebot_plugin_value 是一个基于 NoneBot2 的通用经济系统插件,提供以下核心功能:
- 多货币支持(创建/管理货币)
- 用户账户与余额管理
- 交易记录追踪
- 钩子机制(交易前后触发)
- 异步数据库操作(基于 SQLAlchemy ORM)
核心特性
- 🪙 多货币系统:支持创建任意数量的货币类型
- 💰 原子化交易:保证转账等操作的事务性
- 🔁 钩子系统:支持交易前后触发自定义逻辑
- 📊 完整审计:所有交易记录包含完整上下文信息
- 🔐 安全控制:支持负余额限制、账户锁等机制
快速开始
安装
-
使用 uv 安装:
uv add nonebot-plugin-value
-
使用 pip 安装:
pip install nonebot-plugin-value
加载插件
打开pyproject.toml
[tool.nonebot]
plugins = ["nonebot_plugin_value"]
添加依赖后,请重新启动 nonebot2
API Docs
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 nonebot_plugin_value-0.0.2.post1.tar.gz.
File metadata
- Download URL: nonebot_plugin_value-0.0.2.post1.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65564348a2f5f0833284dab55426a69a613f4ba2467d8eae4fac1731754ba4d1
|
|
| MD5 |
5b819e7d4f96e771bad91d184e973ee9
|
|
| BLAKE2b-256 |
eb6aefb5bd5d87bff735b397492cce85942027d5fe8504284db407b733e87dcb
|
File details
Details for the file nonebot_plugin_value-0.0.2.post1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_value-0.0.2.post1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35736fc061d477fdc523a2dd2d5df346664d0f449692dc04ef708c84e35ee0dc
|
|
| MD5 |
aaef9d68efacad3d8361a5c16dfcf57b
|
|
| BLAKE2b-256 |
e7f420cf247fb5ade00d905ac1dffcc8279bf831cf9728e55813e3c5bbca2d4c
|