BudgetLy
BudgetLy v2.0.0 — a personal finance toolkit for recording expenses, categorizing spending, checking balances, analyzing trends, forecasting budgets, and generating reports from the command line.
Why BudgetLy?
- - Full-featured personal finance tracker with 12 specialized commands
- No external dependencies, accounts, or API keys needed — your data stays local
- All entries are timestamped and stored in plain-text log files
- Export to JSON, CSV, or TXT for analysis in spreadsheets or other tools
- Built-in search, statistics, and health-check utilities
- Works on any system with Bash
Commands
| Command | Usage | Description |
|---|
| INLINECODE0 | INLINECODE1 | Record a financial transaction or expense entry |
| INLINECODE2 |
budgetly categorize <input> | Categorize a transaction (e.g., food, transport, rent) |
|
balance |
budgetly balance <input> | Log or check account balance information |
|
trend |
budgetly trend <input> | Log trend data for spending pattern analysis |
|
forecast |
budgetly forecast <input> | Record a budget forecast or projection |
|
export-report |
budgetly export-report <input> | Generate and log an export report entry |
|
budget-check |
budgetly budget-check <input> | Check budget limits and log the result |
|
summary |
budgetly summary <input> | Log a financial summary (daily, weekly, monthly) |
|
alert |
budgetly alert <input> | Set or log a budget alert (overspend warnings, etc.) |
|
history |
budgetly history <input> | Log or view financial history entries |
|
compare |
budgetly compare <input> | Compare spending across periods or categories |
|
tax-note |
budgetly tax-note <input> | Record tax-related notes and deductions |
|
stats |
budgetly stats | Show summary statistics across all log files |
|
export |
budgetly export <fmt> | Export all data (json, csv, or txt) |
|
search |
budgetly search <term> | Search across all log files for a keyword |
|
recent |
budgetly recent | Show the 20 most recent history entries |
|
status |
budgetly status | Health check — version, entry count, disk usage |
|
help |
budgetly help | Show the help message with all commands |
|
version |
budgetly version | Print the current version |
All entry commands (record, categorize, balance, trend, forecast, export-report, budget-check, summary, alert, history, compare, tax-note) work the same way:
- - With arguments: saves a timestamped entry to
<command>.log and logs to INLINECODE39 - Without arguments: displays the 20 most recent entries from that command's log
Data Storage
All data is stored in ~/.local/share/budgetly/:
- -
record.log, categorize.log, balance.log, etc. — one log file per command - INLINECODE44 — unified activity log across all commands
- INLINECODE45 /
export.csv / export.txt — generated export files
Each entry is stored as YYYY-MM-DD HH:MM|<value> (pipe-delimited timestamp and content).
Requirements
- - Bash (with
set -euo pipefail) - Standard Unix utilities:
date, wc, du, grep, head, tail, INLINECODE56 - No external dependencies, no Python, no API keys
When to Use
- 1. Daily expense logging — Use
budgetly record "Lunch at cafe ¥45" to maintain a running log of daily expenses and review them later with budgetly record (no args shows recent entries). - Category-based spending analysis — Use
budgetly categorize "food: ¥2,300 this month" to organize expenses by category and then search with budgetly search "food" to analyze patterns. - Monthly budget forecasting — Use
budgetly forecast "April budget: rent ¥3000, food ¥2500, transport ¥800" to plan ahead and compare actuals later with budgetly compare. - Tax preparation — Use
budgetly tax-note "Home office deduction: ¥1,200/month, receipts in folder Q1-2026" to keep tax-related notes organized and export them with budgetly export csv. - Spending alerts and limits — Use
budgetly alert "Entertainment budget exceeded: ¥1,500/¥1,000 limit" to log overspend warnings and review alerts with budgetly alert.
Examples
CODEBLOCK0
Configuration
Data directory: ~/.local/share/budgetly/ (hardcoded, no environment variable override).
Output
All commands print results to stdout. Redirect output to a file if needed:
CODEBLOCK1
Note: This is an original, independent implementation by BytesAgain. Not affiliated with or derived from any third-party project.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
BudgetLy
BudgetLy v2.0.0 — 一款个人财务工具包,支持在命令行中记录支出、分类消费、查看余额、分析趋势、预测预算以及生成报告。
为什么选择 BudgetLy?
- - 功能全面的个人财务追踪器,提供12个专用命令
- 无需外部依赖、账户或API密钥——你的数据始终保存在本地
- 所有条目均带有时间戳,并以纯文本日志文件存储
- 可导出为JSON、CSV或TXT格式,便于在电子表格或其他工具中分析
- 内置搜索、统计和健康检查工具
- 可在任何支持Bash的系统上运行
命令
| 命令 | 用法 | 描述 |
|---|
| record | budgetly record <输入> | 记录一笔财务交易或支出条目 |
| categorize |
budgetly categorize <输入> | 对交易进行分类(例如:餐饮、交通、房租) |
| balance | budgetly balance <输入> | 记录或查看账户余额信息 |
| trend | budgetly trend <输入> | 记录消费模式分析的趋势数据 |
| forecast | budgetly forecast <输入> | 记录预算预测或预估数据 |
| export-report | budgetly export-report <输入> | 生成并记录导出报告条目 |
| budget-check | budgetly budget-check <输入> | 检查预算限额并记录结果 |
| summary | budgetly summary <输入> | 记录财务摘要(每日、每周、每月) |
| alert | budgetly alert <输入> | 设置或记录预算提醒(超支警告等) |
| history | budgetly history <输入> | 记录或查看财务历史条目 |
| compare | budgetly compare <输入> | 比较不同时期或类别的支出 |
| tax-note | budgetly tax-note <输入> | 记录税务相关备注和扣除项 |
| stats | budgetly stats | 显示所有日志文件的汇总统计信息 |
| export | budgetly export <格式> | 导出所有数据(json、csv或txt) |
| search | budgetly search <关键词> | 在所有日志文件中搜索关键词 |
| recent | budgetly recent | 显示最近20条历史记录 |
| status | budgetly status | 健康检查——版本、条目数量、磁盘使用情况 |
| help | budgetly help | 显示包含所有命令的帮助信息 |
| version | budgetly version | 打印当前版本 |
所有条目命令(record、categorize、balance、trend、forecast、export-report、budget-check、summary、alert、history、compare、tax-note)的工作方式相同:
- - 带参数时:将带时间戳的条目保存到<命令>.log,并记录到history.log
- 不带参数时:显示该命令日志中最近20条记录
数据存储
所有数据存储在~/.local/share/budgetly/目录下:
- - record.log、categorize.log、balance.log等——每个命令对应一个日志文件
- history.log——所有命令的统一活动日志
- export.json / export.csv / export.txt——生成的导出文件
每个条目存储格式为YYYY-MM-DD HH:MM|<值>(管道符分隔的时间戳和内容)。
系统要求
- - Bash(支持set -euo pipefail)
- 标准Unix工具:date、wc、du、grep、head、tail、cat
- 无需外部依赖,无需Python,无需API密钥
使用场景
- 1. 日常支出记录——使用budgetly record 咖啡店午餐 ¥45维护日常支出日志,之后用budgetly record查看(无参数时显示最近条目)。
- 基于类别的消费分析——使用budgetly categorize 餐饮:本月¥2,300按类别组织支出,然后用budgetly search 餐饮分析消费模式。
- 月度预算预测——使用budgetly forecast 四月预算:房租¥3000,餐饮¥2500,交通¥800提前规划,之后用budgetly compare对比实际支出。
- 税务准备——使用budgetly tax-note 家庭办公室扣除:¥1,200/月,收据在Q1-2026文件夹中整理税务相关备注,并用budgetly export csv导出。
- 支出提醒与限额——使用budgetly alert 娱乐预算超支:¥1,500/¥1,000限额记录超支警告,并用budgetly alert查看提醒。
示例
bash
记录日常支出
budgetly record 咖啡¥15,午餐¥42,杂货¥128
budgetly record 月租¥3,500
对消费进行分类
budgetly categorize 交通:Uber¥30,地铁¥8,加油¥200
budgetly categorize 订阅:Netflix¥45,Spotify¥15,iCloud¥6
查看并记录余额
budgetly balance 活期账户:截至3月18日¥15,230
分析消费趋势
budgetly trend 餐饮支出较上月增长15%
预测下月预算
budgetly forecast 四月预测:总计¥8,500(较三月的¥9,200下降)
设置预算提醒
budgetly alert 警告:外出就餐已达月度限额的80%
记录税务相关项目
budgetly tax-note 向红十字会捐款¥500,收据编号#RC-2026-0318
比较不同时期
budgetly compare 第一季度 vs 第四季度:餐饮+12%,交通-8%,娱乐-20%
查看汇总统计
budgetly stats
搜索特定条目
budgetly search 杂货
导出所有数据为JSON
budgetly export json
检查系统状态
budgetly status
查看最近活动
budgetly recent
配置
数据目录:~/.local/share/budgetly/(硬编码,不支持环境变量覆盖)。
输出
所有命令将结果输出到stdout。如需重定向到文件:
bash
budgetly stats > my-finance-stats.txt
budgetly export csv
注意:这是BytesAgain的原创独立实现。与任何第三方项目无关或衍生。
由BytesAgain提供 | bytesagain.com | hello@bytesagain.com