Hacker News 中文摘要

RSS订阅

十年个人财务:纯文本文件记录 -- 10 years of personal finances in plain text files

文章摘要

作者使用纯文本文件记录个人财务已有10年,采用Beancount工具每月花30-45分钟导入银行账单,累计生成4.5万行数据,存储在16个文本文件中并通过版本控制管理。

文章总结

十年个人财务的纯文本记录之旅

作者Siddhant Goel分享了他使用Beancount纯文本记账系统管理个人财务的十年历程。2026年1月将是他使用这套系统的十周年纪念。

数据概览

  • 45,000行Beancount条目
  • 分布在16个纯文本文件中
  • 包含约10,000笔交易
  • 涉及1,086个虚拟账户(非银行账户)
  • 附有约500份PDF文档(收据/发票)

月度工作流程

每月花费30-45分钟: 1. 从银行下载CSV格式对账单 2. 通过Python编写的"导入器"转换数据 3. 将条目添加到主.beancount文件 4. 手动/自动平衡每笔交易(确保借贷相等)

技术贡献

作者为德国多家银行开发了专用导入器: - beancount-dkb(德国信贷银行) - beancount-ing(荷兰国际集团德国分行) - beancount-n26(数字银行N26)

从使用者到传播者

初期学习曲线陡峭的经历促使作者编写了入门指南《Python个人理财》,该书获得Beancount官方推荐和读者好评。

核心价值

作者特别强调纯文本记账的优势: - 数据完全自主掌控 - 不依赖特定应用或服务 - 可长期保存 - 支持深度分析

这套系统不仅帮助作者高效管理财务,更为税务申报等场景提供了完整的历史记录。十年坚持印证了纯文本会计的持久价值。

评论总结

以下是评论内容的总结:

  1. 对Beancount的积极评价

    • 用户认为Beancount是一个多功能且灵活的工具,可以用于跟踪个人财务、股票、假期等。
      "I can track stocks, unvested RSU grants, vacation hours, and even personal training I have paid for but yet to use."
      "What I appreciate the most about this approach to personal finances is it just tracks everything."
  2. 文本文件的优势

    • 用户喜欢使用纯文本文件(如Markdown)进行财务管理,认为其易于搜索、编辑和版本控制。
      "It's easy to search and navigate with grep and ag/rg. It's easy to edit in Vim or your favorite editor."
      "The versioning and sync is solved by git + a private github repo."
  3. 入门门槛与学习曲线

    • 部分用户认为入门门槛较高,需要学习复式记账法,并选择合适的工具(如ledger-cli、hledger或Beancount)。
      "The barrier to entry is high because you first need to learn double entry bookkeeping."
      "The choice really comes down to which tool has the documentation/community that makes the most sense to you."
  4. 对GUI的需求

    • 一些用户提到需要图形界面(GUI)来简化操作,推荐了Fava作为Beancount的前端工具。
      "Shoutout to fava, the beancount GUI frontend."
      "I need a GUI for this, and the comments might already put me into the right direction."
  5. 对作者和书籍的质疑

    • 有用户质疑作者与Beancount项目的关联性,认为其书籍更像是一种广告。
      "This seems to be, in effect, advertising for a book about how to use the underlying FOSS software to do this."
      "The author fixed a typo in a docstring once."
  6. 对财务管理工具的实用性讨论

    • 部分用户认为现有工具缺乏标准流程(如发票、折旧等),增加了使用难度。
      "I'm stuck without standard processes for creating invoices, doing deposits, writing off bad debts, depreciation, etc."
      "None of which generates any income and only creates more work for myself."
  7. 对数据管理的思考

    • 用户讨论了如何管理财务数据的长期保存和查询,包括使用AI或SQLite等工具。
      "What janky home server AI could I spin up to perform as bad as me (but no worse)?"
      "Maybe move the data in those text files and PDFs into SQLite?"
  8. 对复式记账法的推荐

    • 有用户推荐了Martin Kleppman的文章,认为其以计算机科学的角度解释了复式记账法,易于理解。
      "It explains double entry accounting in a surprisingly accessible way be putting it in terms of graph theory."

总结:评论中对Beancount的评价褒贬不一,用户普遍认可其灵活性和功能性,但也指出了入门门槛高、缺乏GUI和标准流程等问题。文本文件的易用性和版本控制功能受到好评,而部分用户对作者和书籍的动机提出了质疑。