Skip to main content

Budget CLI

Build Test License

A simple terminal app written in Python to manage budgets and expenses in Google Sheet.

Features

  • Add income transactions
  • Add outcome transactions
  • Add spending categories
  • Add budget for category
  • List spending categories
  • List transactions by month

Installation

pip install budgetcli

In order to use the app you need first to enable Google Spreadsheet API. Please follow this link for more details: Authorize credentials for a desktop application

Configuration

Before start adding transactions and data, you need to do the following steps:

Provide Google spreadsheet id

The spreadsheet id can be found in the browser url, for example https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit#gid=2121817768.

budgetcli config spreadsheet-id ID

Copy the client_secret_XXX.json to app config

budgetcli config credentials-file-path /path/to/client_secret.json

Authorize the app access to spreadsheet data

budgetcli auth

Init sheets and tables

budgetcli init

Usage

The commands follow the below structure.

budgetcli <VERB> <OBJECT> <OPTIONS>

Incomes

To add an income you need to provide only an amount and a category. By default, all the income transactions are added with default today date and without no description.

Add an income

budgetcli add income 5000 salary

Add an income with description

budgetcli add income 5000 projects --description "Project A"

Add an income with date and description

budgetcli add income 500 projects --description "Project A" --date 2023-04-01

Outcomes

Same for outcome transactions, you need to provide only an amount and a category. By default, all the outcome transactions are added with default today date and without no description.

Add an outcome

budgetcli add outcome 400 rent

Add an outcome with description

budgetcli add 400 rent --date 2023-05-01 --description "Rent for May"

List transactions

List first 100 transactions

budgetcli list transactions

List only first 10 transactions

budgetcli list transaction --rows 10

List transactions for a specific month

budgetcli list transactions --month April 

Budget

Add budget for category

budgetcli add budget 400 rent

Metadata

Release files for budgetcli 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for budgetcli 2.0.0
File Size Uploaded
budgetcli-2.0.0.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for budgetcli 2.0.0
File Interpreter ABI Platform
budgetcli-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / budgetcli-2.0.0.tar.gz

Download URL budgetcli-2.0.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
594c86af2c753afb2a948cd92657834d7415d20991b3dc0042bb088d43ff04f5
BLAKE2b-256 checksum
How to use checksums
c230a967f215e8326902d6f7abc97135909b9fab1c53554db538b1afd3d6c65c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / budgetcli-2.0.0-py3-none-any.whl

Download URL budgetcli-2.0.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
577e516f151f24ba51ce6680d8f46e732ffe88f1910845c5b23d0c4c3f197f27
BLAKE2b-256 checksum
How to use checksums
0cc263efad7ea5e7d8bb0899428af5c34c8e86fd38ef17231dad3590f978f67b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page