Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

expense_tracking_cli-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

expense_tracking_cli-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file expense_tracking_cli-0.1.0.tar.gz.

File metadata

  • Download URL: expense_tracking_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.11 Windows/10

File hashes

Hashes for expense_tracking_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a29dd62211d78ced9e63f7721b654296cb34b1341e1d247aadd801e9f45026bb
MD5 2f0b827f1818d567d79f217f58caeb70
BLAKE2b-256 f0ed2fd2e3e71d8b9c65142e09c370688afdef49620db8ae9a1724b7ee6bcfdd

See more details on using hashes here.

File details

Details for the file expense_tracking_cli-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for expense_tracking_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb52587b5b34ffd444dad7f78ac142f3030c88c86f0e33ed5d3e934b542d33cd
MD5 0ba1fc72d18dc9f206b70010f2398052
BLAKE2b-256 10043ee4da0fb88fb6ea136141faaa47290d2d3cc0270d9838752b9a6f8efd7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page