项目作者: makotodejima

项目描述 :
Cli for personal finance
高级语言: Rust
项目地址: git://github.com/makotodejima/fi.git
创建时间: 2020-10-08T16:38:08Z
项目社区:https://github.com/makotodejima/fi

开源协议:

下载


fi

Cli for personal finance

fi history

Usage

Pull data from Notion tables

  1. $ fi pull

Show history for given currency

  1. $ fi history [--currency | -c] <currency>

Show latest for given currency accounts

  1. $ fi sum [--currency | -c] <currency>

Show sum of all accounts converted to given currency

  1. $ fi networth [--currency | -c] <currency>

and some more…

  1. USAGE:
  2. fi <SUBCOMMAND>
  3. FLAGS:
  4. -h, --help Prints help information
  5. -V, --version Prints version information
  6. SUBCOMMANDS:
  7. delete Delete all table rows
  8. help Prints this message or the help of the given subcommand(s)
  9. history Display history of accounts
  10. networth Display net worth in given currency
  11. pull Pull account and snapshot data from notion table
  12. sum Display latest sum for given currency

If you:

  • feel like keeping track of your personal finances in Notion
  • are weird enough that you want to use cli to view the data
  • don’t mind setting up free Postgres DB on Heroku (see .env.example)

then you can use it, too.


Here’s a sample data recorded in Notion.

Test data on Notion

I am hosting “Notion API Worker” myself using Cloudflare in order to access Notion table data from cli. (https://notion-api.mkd.workers.dev).
If your notion page/table is public, you can also use this endpoint to query your data.

This is a neat tool that allows you to access your Notion content, created by these nice people

See the docs for how to set the token for private pages. For public pages there’s no need for authorization.