diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53e3b49..05e5017 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/monarchmoney + url: https://pypi.org/p/monarchmoney-grablair permissions: id-token: write steps: diff --git a/monarchmoney/__init__.py b/monarchmoney/__init__.py index 513242b..8fa10f0 100644 --- a/monarchmoney/__init__.py +++ b/monarchmoney/__init__.py @@ -12,5 +12,5 @@ RequestFailedException, ) -__version__ = "0.1.15" -__author__ = "hammem" +__version__ = "0.1.17" +__author__ = "grablair" diff --git a/monarchmoney/monarchmoney.py b/monarchmoney/monarchmoney.py index 22f35ec..3bf1c0e 100644 --- a/monarchmoney/monarchmoney.py +++ b/monarchmoney/monarchmoney.py @@ -1450,6 +1450,7 @@ async def get_transactions( is_recurring: Optional[bool] = None, imported_from_mint: Optional[bool] = None, synced_from_institution: Optional[bool] = None, + show_all_transactions: Optional[bool] = True, ) -> Dict[str, Any]: """ Gets transaction data from the account. @@ -1469,6 +1470,8 @@ async def get_transactions( :param is_recurring: a bool to filter for whether the transactions are recurring. :param imported_from_mint: a bool to filter for whether the transactions were imported from mint. :param synced_from_institution: a bool to filter for whether the transactions were synced from an institution. + :param show_all_transactions: a bool to filter for whether to include all transactions, even those that are + hidden from accounts hidden from lists, reports, and budgets. Defaults to True. """ query = gql( @@ -1495,6 +1498,7 @@ async def get_transactions( pending date hideFromReports + hiddenByAccount plaidName notes isRecurring @@ -1574,6 +1578,9 @@ async def get_transactions( if synced_from_institution is not None: variables["filters"]["syncedFromInstitution"] = synced_from_institution + if show_all_transactions: + variables["filters"]["transactionVisibility"] = "all_transactions" + if start_date and end_date: variables["filters"]["startDate"] = start_date variables["filters"]["endDate"] = end_date diff --git a/setup.py b/setup.py index 6834755..2604511 100644 --- a/setup.py +++ b/setup.py @@ -5,13 +5,13 @@ install_requires = open("requirements.txt", "r").read().split("\n") setup( - name="monarchmoney", + name="monarchmoney-grablair", 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="hammem@users.noreply.github.com", + url="https://github.com/hammem/monarchmoney-grablair", + author="grablair", + author_email="grablair@users.noreply.github.com", license="MIT", keywords="monarch money, financial, money, personal finance", install_requires=install_requires,