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
Via pip
pip install monarchmoney
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_account_holdings
- all of the securities in a brokerage or similar type of accountget_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 accountget_cashflow
- cashflow data (by category, category group, merchant and a summary)get_cashflow_summary
- cashflow summary (income, expense, savings, savings rate)
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.3.tar.gz
.
File metadata
- Download URL: monarchmoney-0.1.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9770c2bc9cb223b9072b585a1c473e1b6682c42b3429f3316ceffbd328c366f |
|
MD5 | ced93dc6d134a0b2442d935a888247d4 |
|
BLAKE2b-256 | a261d1b02fff6ce4cb45add2518260b51f4083ebc1d22e57257ae8912c052923 |
File details
Details for the file monarchmoney-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: monarchmoney-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 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 | 2bb417b5ef2e80e6e7ad20de3eb23fe8c165621c09ed58f606515b91ef278806 |
|
MD5 | fc31ff7ce9f5b60b3ca33446c9a47a76 |
|
BLAKE2b-256 | a0aa41740ded894cc2ae2218c7183ad60df1483b4df4c4c8b7a649f010c1e80b |