A Python library for interacting with Monzo bank accounts
MIT License
A Python library for interacting with Monzo bank accounts that can handle OAuth authentication.
pip install libmonzo
Monzo has not opened their API broadly yet, and have some restrictions in place. As such, in order to use this library, you'll need to follow a few steps.
import libmonzo
client = libmonzo.MonzoClient(client_id, owner_id, client_secret)
# Via OAuth (it will open a browser window)
client.authenticate()
# Or providing the access token directly
client.access_token = "..."
# Getting accounts
for account in client.accounts():
print(account.owners[0].preferred_name)
# Get the balance of an account
account = client.accounts()[0]
balance_info = client.balance(account_id=account.identifier)
print(balance_info.balance)
Annotating transactions will be coming soon. There appears to be a minor bug causing problems at this point, so it's not quite ready.
This was written because I needed it for a small personal project. Because of that, there are some issues. I'm open to PRs to fix these though.