Monarch Money API for Python
Project description
Monarch Money
Python library for accessing Monarch Money data.
Installation
From Source Code
Clone this repository from Git
git clone https://github.com/hammem/monarchmoney.git
From Tarball
Download it from GitHub
curl -OJL https://github.com/hammem/monarchmoney/tarball/master
and then install it:
python setup.py install
Instantiate & Login
There are two ways to use this library: interactive and non-interactive.
Interactive
If you're using this library in something like iPython or Jupyter, you can run an interactive-login which supports multi-factor authentication:
mm = MonarchMoney()
await mm.interactive_login()
This will prompt you for the email, password and, if needed, the multi-factor token.
Non-interactive
For a non-interactive session, you'll need to create an instance and login:
mm = MonarchMoney()
mm.login(email, password)
This may throw a RequireMFAException
. If it does, you'll need to get a multi-factor token and call the following method:
mm.multi_factor_authenticate(email, password, multi_factor_code)
Accessing Data
As of writing this README, the following methods are supported:
get_accounts
- all the accounts linked to Monarch Moneyget_subscription_details
- the Monarch Money account's status (e.g. paid or trial)get_transactions
- transaction data, defaults to returning the last 100 transactions; can also be searched by date rangeget_transaction_categories
all of the categories configured in the accountget_transaction_tags
all of the tags configured in the account
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file monarchmoney-0.1.0.tar.gz
.
File metadata
- Download URL: monarchmoney-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b1bf359fa3edbb37e765c788203405b9de78c7c2c4177b4ed6174dd25e67674 |
|
MD5 | e2cf99e6b9479442a3964f4a21becaa8 |
|
BLAKE2b-256 | 7e02130700791de0048772885d59cab76d4ff33fc3764b787e230087bc460973 |
File details
Details for the file monarchmoney-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: monarchmoney-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bffd3f275d127ec225266298cb07bd29ab3577073b9d8d32a21fb2bdd0764b3 |
|
MD5 | dd0de3063f433169604a6d668dd8b139 |
|
BLAKE2b-256 | feb4db0b9faa9ea2dc5b75f9823d0482edac88f6884d9addc2e58a9fc04a683c |