Skip to main content

A system tray application to monitor GACCode credits balance

Project description

GACCode积分监控

这是一个监控GACCode平台积分余额的工具。

功能

  • 定期查询GACCode API获取账户积分余额
  • 将查询结果记录到日志文件
  • 在Windows系统托盘中显示当前积分余额

安装

方法1: 使用pip安装

pip install gaccode-monitor

方法2: 从源码安装

  1. 克隆仓库
  2. 安装依赖库:
pip install -r requirements.txt

配置

在运行程序前,需要在项目根目录下创建或修改config.ini文件,设置您的GACCode授权令牌:

[DEFAULT]
token=Bearer 您的GACCode令牌

您也可以使用简化格式:

token=Bearer 您的GACCode令牌

使用方法

日志记录模式

运行以下命令启动定期查询并记录日志:

# 如果通过pip安装:
gaccode-logger

# 如果从源码安装:
python src/py/fetch_gaccode_balance.py

系统托盘模式

运行以下命令启动系统托盘应用:

# 如果通过pip安装:
gaccode-monitor

# 如果从源码安装:
python src/py/gaccode_tray_icon.py
# 或者双击 start_tray_icon.bat

系统托盘图标将显示当前的积分余额,颜色根据余额百分比变化:

  • 蓝色: 余额 > 70%
  • 黄色: 余额 30%-70%
  • 红色: 余额 < 30%

鼠标悬停在图标上可查看详细信息。右键点击图标可退出应用。

打包与发布

要将项目打包成whl文件:

# 在Windows上
build_package.bat

# 在其他系统上
python -m build

打包完成后,whl文件会生成在dist目录中。

发布到PyPI

python -m twine upload dist/*

效果

image-20250724224134295

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

gaccode_monitor-0.1.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

gaccode_monitor-0.1.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file gaccode_monitor-0.1.2.tar.gz.

File metadata

  • Download URL: gaccode_monitor-0.1.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for gaccode_monitor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 189ce904374f7e0f9c9149b9af090bfaf07cf03cbb7764a2029785b46532240b
MD5 d426fdd28792fc9fad2a1d81bb492d9d
BLAKE2b-256 379224144c167c377fb673aa0eb4898ba342d1964dc21fac37dc4ce0196577ac

See more details on using hashes here.

File details

Details for the file gaccode_monitor-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gaccode_monitor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d69ffefaa7981be3590382b559a4b8bef30b7ad25f6ce1a55f56b15f952f59f
MD5 158db342bcb70fefe278663c9d776f49
BLAKE2b-256 d28f089d1eb026a655ee3dfeeaa10555680df543b18f964244a484bfeb382e09

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