Skip to content

A5yncX/notion-to-beancount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

用法

本文件用于将每月的账单从notion保存到beancount.

Beancount —— 命令行复式簿记

Notion 月账单模板

记账神器 Beancount 教程

我的beancount文件

和网上分享的多层文件一致,每月账单的路径为YYYY/M.bean, Expenses:XXX存储于accounts/expenses.bean,对应了生成月账单的支出类型.

#expense.bean
option "title" "expenses"
option "operating_currency" "CNY"


; 2001-08-06 open Expenses:Unknown CNY
2001-08-06 open Expenses:Other  CNY
2001-08-06 open Expenses:Dining  CNY
2001-08-06 open Expenses:Shopping  CNY
2001-08-06 open Expenses:Transportation  CNY
2001-08-06 open Expenses:Entertainment  CNY
2001-08-06 open Expenses:Electronics  CNY
2001-08-06 open Expenses:Clothing  CNY
2001-08-06 open Expenses:Pets  CNY
2001-08-06 open Expenses:Daily  CNY
2001-08-06 open Expenses:SnacksandBeverages  CNY
2001-08-06 open Expenses:FruitsandVegetables  CNY

使用方式

每月记账完成后进入月账单的database,点击右上角...=>Export,选项Markdown&CSV/Everything/Everyting,解压导出的zip,将其放在和import.py同路径下运行以下命令.

python import.py

PS:因为我的记录方法为每月统计一次,因此生成的bean文件以database内第一笔账的月份为名.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages