Skip to main content

Economy API for NoneBot2

Project description

value Logo

EconomyValue

基于SQLAlchemy2的强大经济系统插件!

PyPI Version Python Version NoneBot Version License QQ Group

核心特性

nonebot_plugin_value 是一个基于 NoneBot2 的通用经济系统插件,提供以下核心功能:

  • 📈 账户系统: 各货币账户独立
  • 🪙 多货币系统: 支持创建任意数量的货币类型
  • 💰 原子化交易: 保证转账等操作的事务性
  • 🔁 钩子系统: 支持交易前后触发自定义逻辑
  • 📊 完整审计: 所有交易记录包含完整上下文信息
  • 🔐 安全控制: 支持负余额限制
  • 📝 批量操作: 支持批量修改用户的货币数据
  • 🔍 时间范围审计日志: 从时间范围获取交易记录
  • 🚀 导出数据: 支持从 Json 文件导入/导出到 Json 文件
  • 🔧 依赖注入: 支持依赖注入模式调用

快速开始

安装

  • 使用 nb-cli 安装:

    nb plugin install nonebot-plugin-value
    
  • 使用 uv 安装:

    uv add nonebot-plugin-value
    
  • 使用 pip 安装:

    pip install nonebot-plugin-value
    

加载插件

使用pip/uv安装需要打开pyproject.toml

[tool.nonebot]
plugins = ["nonebot_plugin_value"]

添加依赖后,请重新启动 nonebot2

API Docs

更新迁移

  1. 升级 nonebot_plugin_value 到最新版本

  2. 在机器人根目录使用nb orm upgrade命令升级数据库

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_value-0.1.6.post1.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_value-0.1.6.post1-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_value-0.1.6.post1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_value-0.1.6.post1.tar.gz
Algorithm Hash digest
SHA256 08dfc913e726a16b51efe6830a273eb1cd8e80150e5041b521707c543f4a066b
MD5 b1d11ef06c2a6435599212b1b9d0a8b3
BLAKE2b-256 3c3c700485862c7cc370ae3d90615d0d26a03dcd7fb4dadfcd130be43896c422

See more details on using hashes here.

File details

Details for the file nonebot_plugin_value-0.1.6.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_value-0.1.6.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d998a0e8655880de2c3b551cf62de087fe2b15de3889d09763ed741f25a8886
MD5 7917d6b3a63bd3b8338955df77177cd5
BLAKE2b-256 b593ad3cd239dd4bc0e8a9dcd3fd3789a0cb9f74b61b3905b743d471b6cea0ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page