Skip to main content

Python command-line tool for helping conceptualise how much money is left until payday

Project description

Money Per Day 'Til PayDay (mpd-tpd)

Python command-line tool for helping conceptualise how much money is left until payday

Downloads

pip install mpd-tpd
mpd-tpd --next_payday '2024-07-31' \
  --money_remaining '2806.45' \
  --fixed_expenses '1269.00' \
  --currency_format '£x'

You have 9 days left (excluding today) until payday (Wednesday 2024-07-31).
You have £2,806.45 left to spend and £1,269.00 still to pay in fixed expenses before then.
This means that you have £1,537.45 = (£2,806.45 - £1,269.00) in total to spend until payday.
i.e. you can spend £170.83 per day until you will be paid again.

Home Page: https://github.com/J-sephB-lt-n/mpd-tpd

$ mpd-tpd --help

usage: cli.py [-h] -p NEXT_PAYDAY -m MONEY_REMAINING [-f FIXED_EXPENSES] [-n NAMED_FIXED_EXPENSES] [-c CURRENCY_FORMAT] [-t]

    +-------------------------------------+
    | Money Per Day 'Til PayDay (mpd-tpd) |
    +-------------------------------------+
    Command-line tool for helping conceptualise how much money is left until payday

    Examples:
        $ mpd-tpd --next_payday '2024-07-24' --money_remaining 100

        # if you still intend to spend money today, then include flag '--include_today':
        $ mpd-tpd --next_payday '2024-07-24' --money_remaining 99.99 --include_today

        # if you have known compulsory bills which you want pre-removed before doing the calculation, use parameter '--fixed_expenses':
        $ mpd-tpd --next_payday '2024-08-01' --money_remaining 80000 --fixed_expenses 25000

        # you can explicitly name your fixed expenses if you want to #
        $ mpd-tpd --next_payday '2024-08-01' --money_remaining 80000 --named_fixed_expenses 'home loan=19500.39,pay off credit card=351.16,netflix=5.41'

        # if you want the numbers formatted with a specific currency, specify the format
        #   using parameter '--currency_format'
        $ mpd-tpd --next_payday '2024-07-24' --money_remaining 50 --currency_format '£x'
        $ mpd-tpd --next_payday '2024-07-24' --money_remaining 99999 --currency_format 'x GBP'


options:
  -h, --help            show this help message and exit
  -p NEXT_PAYDAY, --next_payday NEXT_PAYDAY
                        Date on which you will next be paid. Required format is YYYY-MM-DD e.g. 2069-07-24
  -m MONEY_REMAINING, --money_remaining MONEY_REMAINING
                        Amount of money remaining (which needs to last you until your next payday)
  -f FIXED_EXPENSES, --fixed_expenses FIXED_EXPENSES
                        Total pending payments (to be paid before your next payday) which are non-negotiable
  -n NAMED_FIXED_EXPENSES, --named_fixed_expenses NAMED_FIXED_EXPENSES
                        You can use this instead of --fixed_expenses if you want a verbose breakdown of your fixed expenses
  -c CURRENCY_FORMAT, --currency_format CURRENCY_FORMAT
                        Show monetary amounts with a specific currency format. Examples: '$x', 'x ', 'xUSD'
  -t, --include_today   I still want to spend money today (i.e. it is the beginning of the day)

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

mpd_tpd-0.2.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

mpd_tpd-0.2.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file mpd_tpd-0.2.1.tar.gz.

File metadata

  • Download URL: mpd_tpd-0.2.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.5.0

File hashes

Hashes for mpd_tpd-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7eb6ec9f9d8069e319925b5e1197d5ce5a8b11d2acc44789ccca9e11356fa280
MD5 5c2088097047c5b3f4114b761327fe72
BLAKE2b-256 acf15c98078ecc24dc1bf9bc430bf4ba069044b4a4bcfd0e6de2ae7135819f84

See more details on using hashes here.

Provenance

File details

Details for the file mpd_tpd-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mpd_tpd-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.2 Darwin/23.5.0

File hashes

Hashes for mpd_tpd-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7da1e83aa2287f712231280e517c5b72bdd80bee8080ae0d9db7e17ee00696
MD5 d0b2068fb0e8baca1608ab3dff56dc83
BLAKE2b-256 8de6b46947122eaf6b75a93dfc1361998ae9cc9912ff8a69ccd195d681e7648e

See more details on using hashes here.

Provenance

Supported by

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