A system tray application to monitor GACCode credits balance
Project description
GACCode积分监控
这是一个监控GACCode平台积分余额的工具。
功能
- 定期查询GACCode API获取账户积分余额
- 将查询结果记录到日志文件
- 在Windows系统托盘中显示当前积分余额
安装
方法1: 使用pip安装
pip install gaccode-monitor
方法2: 从源码安装
- 克隆仓库
- 安装依赖库:
pip install -r requirements.txt
使用方法
日志记录模式
运行以下命令启动定期查询并记录日志:
# 如果通过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/*
效果
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
gaccode_monitor-0.1.0.tar.gz
(9.1 kB
view details)
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 gaccode_monitor-0.1.0.tar.gz.
File metadata
- Download URL: gaccode_monitor-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf016499bef0699267f024a785f2bce4cb75cab7603143ff157e997f89a46df6
|
|
| MD5 |
4e8711e5c9540e4e136fa8b017267186
|
|
| BLAKE2b-256 |
42cec81ba07aae34e50c9244e44be460ebc0529df630985075545527a0892b68
|
File details
Details for the file gaccode_monitor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gaccode_monitor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34bdc3aa143d5e7831711d98350d863458e612f3247e8264cbb82c26e44be76f
|
|
| MD5 |
7997e982927714297162ca1db37760b8
|
|
| BLAKE2b-256 |
95ce41494795a9346b2804ee3c2f41903b4c590f1993f91a6446eb05dc180b9f
|