Skip to main content

Simple (and awesome) command line interface for quickly accessing your (equally awesome) Monzo account info, its current balance, latest transactions, etc.

Project description

Build status Test coverage PyPI version Python versions License

Simple (and awesome) command line interface for quickly accessing your (equally awesome) Monzo account info, its current balance, latest transactions, etc.

It uses pymonzo and its authentication system in the background so you should to read the auth section there first.

Installation

>From PyPI:

$ pip install monz

Usage

First, you need to authenticate either via an access token or OAuth 2.

Everything else should be pretty straightforward:

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

  Simple command line interface for quickly accessing your Monzo account
  info, current balance, latest transactions, etc.

  See https://github.com/pawelad/monz for more info.

Options:
  -t, --access-token TEXT  Monzo API access token.
  --help                   Show this message and exit.

Commands:
  accounts      Show connected Monzo accounts
  balance       Show Monzo account balance
  transactions  Show Monzo account transactions

Examples

You can view your linked accounts:

$ monz accounts
Account #1, Bender Rodríguez
ID:          acc_2716057
Created:     Dec 31, 2999 11:59 PM

If you have only one then it will become the default one, but if you have more then you have to pass its ID explicitly to other subcommands.

You can view your current balance, which is also the default subcommand:

$ monz balance
Balance:     £17.29
Spent today: £0.00

$ monz
Balance:     £17.29
Spent today: £0.00

Lastly, you can see your latest transactions:

$ monz transactions -n 2
-£50.00 | Robot Arms Apartments (New New York)
Category:    Bills
Date:        Nov 18, 3016 11:09 PM

-£9.20 | Fronty's Meat Market (New New York)
Category:    Grocieries
Date:        Nov 17, 3016 8:31 AM

Tests

Package was tested with the help of py.test and tox on Python 2.7, 3.4, 3.5 and 3.6 (see tox.ini).

Code coverage is available at Coveralls.

To run tests yourself you need to set environment variables with access token before running tox inside the repository:

$ pip install requirements/dev.txt
$ export MONZO_ACCESS_TOKEN='...'
$ tox

Contributions

Package source code is available at GitHub.

Feel free to use, ask, fork, star, report bugs, fix them, suggest enhancements, add functionality and point out any mistakes.

Authors

Developed and maintained by Paweł Adamczak.

Released under MIT License.

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-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

monz-0.2.0-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: monz-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for monz-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c4f3b3be0b957388c1c6f2993dcd79eea37b0bfbbd97728739c170862c7c7cfe
MD5 304923b6a1b66454ecbe38851eb58f02
BLAKE2b-256 8590a43236a6198f4f17bce10c9cdde1f00997fd26b87e5d5554eb3c722bf9f9

See more details on using hashes here.

File details

Details for the file monz-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for monz-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5e900c17fe02ba12af9eb009830a08e234f9e7d16fe86f9ebb6e4144c7c444e3
MD5 bedba0cc0b60d717f1aa0d6aeee324a5
BLAKE2b-256 fe5966d0071822f8bd99fed105649f4ef440573cc1d6e9f4096278352081d519

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