Skip to main content

Add your description here

Project description

value Logo

Value

新一代经济API

PyPI Version Python Version NoneBot Version License QQ Group

插件概述

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


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.0.4.dev1.tar.gz (25.4 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.0.4.dev1-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_value-0.0.4.dev1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_value-0.0.4.dev1.tar.gz
Algorithm Hash digest
SHA256 c9401cc5d44afe047e7aa833f2886d6fd7e329689cb14787da3031098f4d88f5
MD5 f95059a58aaf9c6aa76efb0a0cd8888f
BLAKE2b-256 a939db6997dd99ded5d3b372e906bf4b350dbaf815c0c60d1fd91ef21dbb867b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_value-0.0.4.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_value-0.0.4.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 f70e7b0dfd5fe6c073467d379143d299a4989b66a9f8af35408e0200b96ddca2
MD5 4583396df3f57bac7c613bc922c237b9
BLAKE2b-256 4c5257cd8da56e9c514e56805445ef22c168e764f3bfc90c4dce60e186645b4c

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