Giter Site home page Giter Site logo

mpschr / budget-envelopes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 192 KB

Python package with CLI implementing the envelope budget system. Output compatible with home-assistant integration.

Python 100.00%
envelope-budget envelope-budgeting homefinance homefinancing

budget-envelopes's Introduction

Budget Envelopes

This python package is an implementation of the envelope budget system.

In other words, when supplied with target budgets (envelope start balances) and categorised transactions (money drawn from envelopes), this software can be run via cli, to calculate what the envelope balances are taking into account the expenses and the set budgets.

Installation

Disclaimer: This library has been written to meet personal needs and is thoroughly not tested. In any case of interest, I am glad to assist, improve documentation and accept pull requests.

Via poetry: poetry install

Via pip: pip install

Features

Done:

  • Reads transactions from file in custom formats (see CLI options: budget-envelopes --help)
    • Example JSON-transactions & example csv-transactions. See examples/
  • Reads budgets from file in specific format (see example file examples/envelope_budget.csv)
    • Supply budgets indicating the budgeting period as
      • month: m
      • quarter: q
      • half-year: h
      • year: y
  • Adjustments: One-off adjustments and transfer between envelopes (see example file examples/envelope_adjustments.csv)
    • Adjust a budget for a single month
      • one-off entries: o
      • envelope-transfers entries: t
  • Envelope carryovers to next month
  • Output envelope stats and plot
  • For home assistant integration see the budgetenvelope-homeassistant-repository

Todo:

  • proper testing (surpriiiiise!). Available tests probablyl don't work anymore * Pytest is set up.
  • Proper visualisation in homeassistant
  • Explain envelope_budget.csv and envelope_adjustments.csv better

Command line options:

see also Documentation: http://budget-envelopes.rtfd.io

Documentation Status
> budget-envelopes --help

Usage: budget-envelopes [OPTIONS]

Console script for budget_envelopes.

Options:
-b, --budgets TEXT         Path to budgets csv file (fixed format)
-t, --transactions TEXT    Path to file including transactions in either csv
                        or json format. Json should be an array of
                        objects.
-$, --amount-field TEXT    The field which supplying the amount of the
                        transactions
-D, --date-field TEXT      The field supplying the date of the transaction.
                        Can be supplied multiple times in order of
                        priority (e.g. transaction date, booking date)
-E, --envelope-field TEXT  Field supplying the envelope (category) from
                        which the money is drawn or put into. Must match
                        categories in budgets-file
--debit-flag-field TEXT    Field supplying the debit/credit flag. Also
                        supply --debit-flag
--debit-flag TEXT          Content of --debit-flag-field when transaction is
                        a debit transaction. Otherwise credit transaction
                        assumed.
--first-month TEXT         Supply from which month the transctions and
                        budgets should be calculated forwards. The format
                        is '2023-05'
-o, --output-file TEXT     Output file name for .json file
-S, --session TEXT         When adding multiple files per CLI, use a session
                        string that ties the calls together
--help                     Show this message and exit.

Credits

Other blabla's

  • Free software: MIT license

budget-envelopes's People

Contributors

mpschr avatar

Watchers

 avatar

budget-envelopes's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.