Git Product home page Git Product logo

expense-tracker-cli's Introduction

expense

Expense tracking command line application.

Getting started

This project is created using Poetry. For more information about poetry refer here

To get started with Expense tracker, follow these steps:

  1. Clone this repository to your local machine.
  2. Go inside the cloned repository at .\expense-tracker\ location.
  3. Run poetry install to install dependencies and activate virtual environment.
  4. Run poetry shell to launch the virtual environment shell.
  5. Start running the commands in the usage section to try out.

Usage

Here's a demo of how it works:

# Initialize the app
$ expense init 

$ expense add --name "Milk" --description "Bought milk" --price 50

$ expense add --name "Tea" --description "Bought tea" --price 100
$ expense list
     ╷       ╷             ╷
  ID │ Name  │ Description │ Price
╺━━━━┿━━━━━━━┿━━━━━━━━━━━━━┿━━━━━━━━━━━━━━╸
  1  │ Milk  │ Bought milk │ 50
  2  │ Tea   | Bought tea  │ 100
     ╵       ╵             ╵

$ expense update --id 1 --price 60

$ expense delete --id 1

 $ expense list
     ╷       ╷             ╷
  ID │ Name  │ Description │ Price
╺━━━━┿━━━━━━━┿━━━━━━━━━━━━━┿━━━━━━━━━━━━━━╸
  2  │ Tea   | Bought tea  │ 100
     ╵       ╵             ╵

$ expense --help
Usage: expense [OPTIONS] COMMAND [ARGS]...

  expense is a small CLI app to track expenses.

Options:
   -v, --version Shows application version and exit


Commands:
  add      Add an expense to the expense tracker app.
  clear   clear all expenses in the expense tracker app.
  delete   Delete an expense from the expense tracker app.
  init     Initialize the expense tracker app.
  list     List all expenses in the expense tracker app.
  total    Generates total expense in the expense tracker app.
  update    Update an expense in the expense tracker app.

expense-tracker-cli's People

Contributors

alzahedi 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.