Skip to main content

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 frozen Webhook containing its id, account_id, and url.
  • await user_account.list_account_webhooks(account_id) returns every Webhook registered 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

monzopy-1.7.0.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

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

monzopy-1.7.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file monzopy-1.7.0.tar.gz.

File metadata

  • Download URL: monzopy-1.7.0.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for monzopy-1.7.0.tar.gz
Algorithm Hash digest
SHA256 b827913fe5ccd79de11ebe150c65d37748a4bb12973b36f92c6822c78071bca4
MD5 175962f509535f5bfae369c808914a3a
BLAKE2b-256 cf4b5282fe710f9fecb5f8795ccac9014c8210ce3c26c7ac4016d09cd6f97b26

See more details on using hashes here.

File details

Details for the file monzopy-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: monzopy-1.7.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

Hashes for monzopy-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea5dd623323c29c7bdddc32e934288688a166e06cd9504b4aafb70e167c35446
MD5 5694ff2fa3557b569c46670701bb4dfb
BLAKE2b-256 e925723dd9fd956380b211913e15cf80b639fad1784fa94acea84966b4b78102

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.0

2 files

This release

1.7.0 This release

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page