Value API for NoneBot2
Project description
核心特性
nonebot_plugin_value 是一个基于 NoneBot2 的通用经济系统插件,提供以下核心功能:
- 📈 账户系统:各货币账户独立
- 🪙 多货币系统:支持创建任意数量的货币类型
- 💰 原子化交易:保证转账等操作的事务性
- 🔁 钩子系统:支持交易前后触发自定义逻辑
- 📊 完整审计:所有交易记录包含完整上下文信息
- 🔐 安全控制:支持负余额限制
快速开始
安装
-
使用 uv 安装:
uv add nonebot-plugin-value
-
使用 pip 安装:
pip install nonebot-plugin-value
加载插件
打开pyproject.toml
[tool.nonebot]
plugins = ["nonebot_plugin_value"]
添加依赖后,请重新启动 nonebot2
API Docs
更新迁移
-
升级 nonebot_plugin_value 到最新版本
-
运行迁移脚本((如果Bot根目录下没有迁移脚本目录,请使用
nb orm init来初始化。)在bot根目录使用nb orm revison再nb orm upgrade进行迁移)
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.6.1.post1.tar.gz.
File metadata
- Download URL: nonebot_plugin_value-0.0.6.1.post1.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5199e9926de0c0c0a5239b8681a0e2305f4f295a70ad853315b27485ad8def1
|
|
| MD5 |
7e19bef84246875029558847f077855d
|
|
| BLAKE2b-256 |
c1836d08465addfffd2760d903f8d5983b4fab104990ac789a3404c0eb02969c
|
File details
Details for the file nonebot_plugin_value-0.0.6.1.post1-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_value-0.0.6.1.post1-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54e6f56bf8a354f027ff776feb5933d021396bedc2739623921eda837f311bab
|
|
| MD5 |
ac38f5616c4fe5a03b0f2d33f3e365ad
|
|
| BLAKE2b-256 |
e50ee5740fbf1ad5424e98bc457f423611843ad21f2c4bbff0e291f7e254cf51
|