Skip to content

Commit

Permalink
Merge pull request #9 from hammem/create_pypi
Browse files Browse the repository at this point in the history
Support distribution via pypi
  • Loading branch information
hammem authored Apr 14, 2023
2 parents 293cf88 + 63c6ea4 commit d431a1a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
bin
build
include
lib
.env
.DS_Store
.mm
.monarchmoney.egg-info
.vscode
*.pyc
__pycache__
Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
builddist:
python setup.py check
python setup.py sdist
python setup.py bdist_wheel --universal

install:
pip install .

twine:
twine upload dist/monarchmoney*

uninstall:
pip uninstall monarchmoney

clean:
rm -fR build dist monarchmoney.egg-info monarchmoney/__pycache__
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ 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`
## Via `pip`

`pip install monarchmoney`
# Instantiate & Login

There are two ways to use this library: interactive and non-interactive.
Expand Down Expand Up @@ -53,7 +46,8 @@ mm.multi_factor_authenticate(email, password, multi_factor_code)

As of writing this README, the following methods are supported:

- `get_accounts` - all the accounts linked to Monarch Money
- `get_accounts` - all the accounts linked to Monarch Money
- `get_account_holdings` - all of the securities in a brokerage or similar type of account
- `get_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 range
- `get_transaction_categories` all of the categories configured in the account
Expand Down
9 changes: 9 additions & 0 deletions monarchmoney/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
"""
monarchmoney
A Python API for interacting with MonarchMoney.
"""

from .monarchmoney import LoginFailedException, MonarchMoneyEndpoints, MonarchMoney, RequireMFAException

__version__ = "0.1.0"
__author__ = "hammem"
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@

setup(
name="monarchmoney",
version="1.0",
version="0.1.0",
description="Monarch Money API for Python",
long_description=open("README.md", "r").read(),
long_description_content_type="text/markdown",
url="https://github.com/hammem/monarchmoney",
author="hammem",
author_email="[email protected]",
license="MIT",
classifiers=[],
keywords="monarch money, financial, money, personal finance",
install_requires=install_requires,
packages=['monarchmoney'],
include_package_data=True,
zip_safe=False,
platforms="any",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'License :: OSI Approved :: MIT License',
'Topic :: Office/Business :: Financial',
],
)

0 comments on commit d431a1a

Please sign in to comment.