Skip to main content

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.

Metadata

Release files for monz 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monz 1.0.0
File Size Uploaded Provenance Actions
monz-1.0.0.tar.gz 11.2 kB Without provenance Details for monz-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monz 1.0.0
File Interpreter ABI Platform Actions
monz-1.0.0-py3-none-any.whl Python 3 none any Details for monz-1.0.0-py3-none-any.whl

Total release size: 23.3 kB

Release files / monz-1.0.0.tar.gz

Download URL monz-1.0.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f97cfd4d045e3f2c6c203471424fdbe188fa283f614626fbafc5a46c553c836c
BLAKE2b-256 checksum
How to use checksums
98138538832c25e80269a6e507e8dcf0cb305ae3cbe44c348d2fa652403070f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / monz-1.0.0-py3-none-any.whl

Download URL monz-1.0.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9d804b3601b2df6a0584a4f1419f429c1b9d4e4986d244be1f2016da70d67ff
BLAKE2b-256 checksum
How to use checksums
ecebd1d58e8183806f33dd0ac1b4c35e2f09fd6a657c38f2ce7aa6071bf906dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for monz 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page