Giter Club home page Giter Club logo

week10_miniproject's Introduction

Budget

Spending tracking via command line

After setting up all of the automatic withdraws for bills, saving, investment, etc, the only real problem left is making sure that, over time, your checking account balance stays about the same (or increases). Involved, detailed budgeting tools are overkill when everything is automated. This tool allows for an account balance and a date to be entered from the command line and then differentials for each interval, or aggregated over time, to be reported.

The idea is for a balance to be entered approximately once a month.

Example usage

$ budget add 2016-01-01 1000.00
$ budget add 2016-02-01 1500.00
$ budget add 2016-03-05 1250.00
$ budget add 2016-04-02 1350.00
$ budget show -n 3
2016-02-01 -> 2016-03-05: 1500.00 -> 1250.00 | -250
2016-03-05 -> 2016-04-02: 1250.00 -> 1350.00 | 100
$ budget show -d 2016-03-01
2016-03-05 -> 2016-04-02: 1250.00 -> 1350.00 | 100
$ budget show -n 4 --aggregate
2016-01-01 -> 2016-04-02: 1000.00 -> 1350.00 | 350

Use --help for complete details.

File setup

Use the -f or --file switch to point at a particular file. All data is read and written as plain text. Multiple files can be used to track multiple accounts. The default file if none is provided is ~/.budget.

Two modes

add adds an entry to the given file; it takes positional arguments for date and amount. The formatting of the date is required to be yyyy-mm-dd; this is enforced at write time to make reads easy.

show shows progress over time. Either -n, the number of rows, or -d the date lower-bound is required. The format of the date for -d is the same as for adding an entry. An optional -a or --aggregate flag shows a single step for the entire time period; the default shows a diff for each line in the record.

week10_miniproject's People

Contributors

tobytyl avatar

Watchers

 avatar

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.