Skip to main content

Simple CLI for your Monzo account.

Project description

monz

Package Version Supported Python Versions Read the Docs Codecov License Code style: black py.typed

Simple CLI for your Monzo account.

Installation

Since monz is a command line tool, the recommended installation method is via pipx:

$ pipx install monz

Of course, you can just install it directly from PyPI (ideally, inside a virtualenv):

$ python -m pip install monz

Quick start

Authentication

Before you can access your Monzo account details through monz, you need to authenticate it. You can do that with a (temporary) access token (for example, from the Monzo Developer Portal), or go through a one time OAuth setup that will save the token on disk and automatically refresh it when it expires.

To do the latter, you should first create an OAuth client in Monzo developer tools (with the "Redirect URL" set to http://localhost:6600/monz) and run the monz authorize command with the obtained client ID and client secret.

For more information, please take a look at: https://monz.pawelad.dev/en/latest/getting_started/#authentication

Usage

The default subcommand is info, which shows your account balance and its latest transaction:

$ monz
Balance:                 £203.78
Total balance:           £303.78
Currency:                GBP
Spend today:             £4.20
Local currency:          THB
Local exchange rate:     45.558219

Last transaction:
         -£17.29 | MomCorp
ID:              tx_0000Lxo9IgPERj43i03iKH
Description:     MomCorp
Amount:          -£17.29
Currency:        GBP
Category:        general
Notes:           ✨                       
Created:         Feb 12, 3024, 12:39:22 PM
Settled:         Feb 13, 3024, 1:36:48 AM

You can view all linked accounts:

$ monz accounts
   Account 'acc_87539319' (GB)   
ID:                 acc_87539319
Description:        user_1729
Currency:           GBP
Account Number:     0101100101   
Sort Code:          04-00-04                   
Type:               uk_retail                  
Closed:             No                         
Created:            Dec 31, 2999, 11:59:59 PM  

If you have only one (active) account, it will be used everywhere by default. If you have more, you'll have to pass its ID explicitly when needed via the --account_id option.

Finally, you can see your latest transactions:

$ monz transactions -n 2 
         -£17.29 | MomCorp
ID:              tx_0000Lxo9IgPERj43i03iKH
Description:     MomCorp
Amount:          -£17.29
Currency:        GBP
Category:        general
Notes:           ✨                       
Created:         Feb 12, 3024, 12:39:22 PM
Settled:         Feb 13, 3024, 1:36:48 AM

   -£100.00 | pot_0000aDhHH8z3jvram0L0Di   
ID:              tx_0000FskkLc0KB7aK0SV4cd
Description:     pot_0000aDhHH8z3jvram0L0Di
Amount:          -£100.00
Currency:        GBP
Category:        savings
Created:         Feb 6, 3024, 10:49:22 AM
Settled:         Feb 6, 3024, 10:49:22 AM

You can see all available subcommands and options by running monz --help (or adding --help to any subcommand).

Authors

Developed and maintained by Paweł Adamczak.

Source code is available at GitHub.

If you'd like to contribute, please take a look at the contributing guide.

Released under Mozilla Public License 2.0.

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

monz-1.1.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

monz-1.1.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file monz-1.1.1.tar.gz.

File metadata

  • Download URL: monz-1.1.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for monz-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4e87aca8f68d41dbeab9c71a98a19d29637bd489695c158a54696be926820dca
MD5 bea44570967545729d91aa88efafb93d
BLAKE2b-256 10b59dfac615f8b5b669a9a18937f9721748c4831a5c604da7646b16717c5ab6

See more details on using hashes here.

File details

Details for the file monz-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: monz-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for monz-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc05cfc1591d80d9568041f1cc2e5c3a7cd437cb26a3b8ed9104e217ca5972f1
MD5 b7ae0aa897e9ce31473ab8bd04277155
BLAKE2b-256 9f9075feaa351c44a0af3c43b731d1df3c00f143f1765c1b30cac1c7d05d58e0

See more details on using hashes here.

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