monzopy
A simple async python wrapper for the Monzo API, used primarily by the Monzo Home Assistant integration.
Transactions
await user_account.annotate_transaction(transaction_id, metadata) adds or updates
transaction metadata and returns the updated transaction. Set a value to an empty
string to delete that key. Updating the notes key also updates the transaction's
top-level notes property.
Feed items
await user_account.create_feed_item(account_id, title, image_url, ...) creates a
basic item in an account's Monzo feed. It accepts optional body text, a URL to open
when tapped, and background, title, and body colours.
Webhooks
UserAccount provides ownership-safe primitives for managing webhooks on a specific
Monzo account:
await user_account.register_webhook(account_id, url)registers a webhook and returns a frozenWebhookcontaining itsid,account_id, andurl.await user_account.list_account_webhooks(account_id)returns everyWebhookregistered for that account.await user_account.delete_webhook(webhook_id)deletes a webhook by ID.
The existing register_webhooks, list_webhooks, and unregister_webhooks
methods remain available for compatibility. They operate across all known accounts;
list_webhooks continues to return webhook ID strings and supports optional hostname
filtering.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monzopy-1.8.0.tar.gz.
File metadata
- Download URL: monzopy-1.8.0.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39b314e3f89c7149bd903364f5c1d6dcc58bd80555b88ef714e7cfc34595c80d
|
|
| MD5 |
0825f1a44ca0283f8a11ca67d2a13920
|
|
| BLAKE2b-256 |
d330a59f204f8426cf247e318df33c9bfc516e9890b6a1e0bfda5e4bee5a00bc
|
File details
Details for the file monzopy-1.8.0-py3-none-any.whl.
File metadata
- Download URL: monzopy-1.8.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9922e0694f1d3239e77452c55e8cdc6dcf6ce33ecc36d16c02228981c5479b44
|
|
| MD5 |
8e6f2636a3be2b73a995b08a841e36c0
|
|
| BLAKE2b-256 |
af83186d1d1bfd9dcce8d1df935b9df28319b66deced464db01bad6f6ac3cb9c
|