pymonzo
Modern Python API client for Monzo public API.
- Works on Python 3.8+
- Fully type annotated
- Explicitly defined and validated API schemas (via pydantic)
- Easy authentication with automatic access token refreshing
- Sensible defaults - don't specify account / pot ID if you only have one active
- Optional rich support for pretty printing
This project is not officially affiliated with Monzo.
Installation
From PyPI (ideally, inside a virtualenv):
$ python -m pip install pymonzo
Quick start
Here's an example of what pymonzo can do:
>>> from pymonzo import MonzoAPI
>>> monzo_api = MonzoAPI()
>>> accounts = monzo_api.accounts.list()
>>> len(accounts)
2
>>> # Only one active account, so we don't need to pass it explicitly
>>> monzo_api.balance.get()
MonzoBalance(balance=75000, total_balance=95012, currency='GBP', spend_today=0, balance_including_flexible_savings=95012, local_currency='', local_exchange_rate=0, local_spend=[])
>>> from pymonzo.utils import n_days_ago
>>> transactions = monzo_api.transactions.list(since=n_days_ago(5))
>>> len(transactions)
8
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 pymonzo 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymonzo-2.2.1.tar.gz | 24.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymonzo-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.8 kB
Release files / pymonzo-2.2.1.tar.gz
| Download URL | pymonzo-2.2.1.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e65544474bc8c9dd818265bd43a4c22f6bceccbd5dc907cd1c9541535c96a58
|
|
BLAKE2b-256 checksum How to use checksums |
d8785905cfbadddd7760a3b8364b8f085a1debaf98476bd2554a105d541500c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / pymonzo-2.2.1-py3-none-any.whl
| Download URL | pymonzo-2.2.1-py3-none-any.whl |
|---|---|
| Size | 35.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a3361630a576f0676fc3966af1a03921023e94de8ea62f6174bf4c9014dd726
|
|
BLAKE2b-256 checksum How to use checksums |
56c8207dd695140a47c63f01c5fdc026aa9a868313796b330c0923edcea34574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for pymonzo 2.2.1
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.