{ "info": { "author": "Austin McConnell", "author_email": "austin.s.mcconnell@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Mortgage\n====================\n\n[![PyPI](https://img.shields.io/pypi/v/mortgage.svg)](https://pypi.python.org/pypi/mortgage)\n[![CircleCI](https://circleci.com/gh/austinmcconnell/mortgage.svg?style=shield)](https://circleci.com/gh/austinmcconnell/mortgage)\n[![CodeClimate Maintainability](https://api.codeclimate.com/v1/badges/ee719e510c795ebcc401/maintainability)](https://codeclimate.com/github/austinmcconnell/mortgage/maintainability)\n[![CodeClimate Test Coverage](https://api.codeclimate.com/v1/badges/ee719e510c795ebcc401/test_coverage)](https://codeclimate.com/github/austinmcconnell/mortgage/test_coverage)\n[![Pyup](https://pyup.io/repos/github/austinmcconnell/mortgage/shield.svg)](https://pyup.io/repos/github/austinmcconnell/mortgage/)\n[![ReadTheDocs](https://readthedocs.org/projects/mortgage/badge/?version=latest)](http://mortgage.readthedocs.io/en/latest/?badge=latest)\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/austinmcconnell)\n\n![Logo](docs/_static/mortgage-logo.jpg)\n\nMortgage is a simple calculator intended to aid comprehension of the true cost of a mortgage.\n\n\nInstallation\n--------------------\n\nTo install mortgage, simply:\n\n```commandline\npip install mortgage\n```\n\n\nDocumentation\n-------------------\n\nDocumentation is available at [https://mortgage.readthedocs.io](https://mortgage.readthedocs.io)\n\n\nHow To Use\n--------------------\n\nThis package is intended to help understand the true cost of a mortgage. It also can help you easily compare between different mortgages.\n\nBegin by importing the loan class\n\n```python\nfrom mortgage import Loan\n\n```\n\nCreate a simple mortgage\n\n```python\nfrom mortgage import Loan\n\nloan = Loan(principal=200000, interest=.06, term=30)\n```\n\nView a summary of pertinent mortgage information by calling the summarize property.\n\n```python\nfrom mortgage import Loan\n\nloan = Loan(principal=200000, interest=.06, term=30)\nloan.summarize\n\n>>> Original Balance: $ 200,000\n>>> Interest Rate: 0.06 %\n>>> APY: 6.17 %\n>>> APR: 6.00 %\n>>> Term: 30 years\n>>> Monthly Payment: $ 1199.10\n\n>>> Total principal payments: $ 200,000.00\n>>> Total interest payments: $ 231,676.38\n>>> Total payments: $ 431,676.38\n>>> Interest to principal: 115.8 %\n>>> Years to pay: 30.0\n```\n\nParticularly telling is the Interest to Principal ratio. With the mortgage terms above, you will pay **115%** of the original balance in interest! Compare that to the same loan with a 15 year term below\n\n\n```python\nfrom mortgage import Loan\n\nloan = Loan(principal=200000, interest=.06, term=15)\nloan.summarize\n\n>>> Original Balance: $ 200,000\n>>> Interest Rate: 0.06 %\n>>> APY: 6.17 %\n>>> APR: 6.00 %\n>>> Term: 15 years\n>>> Monthly Payment: $ 1687.71\n\n>>> Total principal payments: $ 200,000.00\n>>> Total interest payments: $ 103,788.46\n>>> Total payments: $ 303,788.46\n>>> Interest to principal: 51.9 %\n>>> Years to pay: 15.0\n```\nIn this case, you only pay **52%** of the original loan balance in interest. Obviously, the shorter the term with all else equal, the less interest you'll pay. But it helps to know exactly how much more/less you'll pay.\n\nRun The Test Cases\n--------------------\nFrom the top level directory, run the following command:\n\n```\npytest\n```\n\nThank You\n--------------------\n\nThanks for checking out the package! I hope you find it useful.\n\nFeel free to open an issue with suggestions, imporovements, ideas, etc.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/austinmcconnell/mortgage", "keywords": "mortgage", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "mortgage", "package_url": "https://pypi.org/project/mortgage/", "platform": "", "project_url": "https://pypi.org/project/mortgage/", "project_urls": { "Homepage": "https://github.com/austinmcconnell/mortgage" }, "release_url": "https://pypi.org/project/mortgage/1.0.5/", "requires_dist": [ "bump2version (<1.0.0,>=0.5.10) ; extra == 'develop'", "pre-commit (<2.0.0,>=1.16.0) ; extra == 'develop'", "pytest (<4.0.0,>=3.2.1) ; extra == 'develop'", "pytest-cov (<3.0.0,>=2.5.1) ; extra == 'develop'", "recommonmark (<1.0.0,>=0.4.0) ; extra == 'develop'", "sphinx (<2.0.0,>=1.7.4) ; extra == 'develop'", "sphinx-autodoc-typehints (<2.0.0,>=1.3.0) ; extra == 'develop'", "tox (<4.0.0,>=3.0.0) ; extra == 'develop'" ], "requires_python": ">=3.5", "summary": "Mortgage Calculator", "version": "1.0.5" }, "last_serial": 5514671, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "524b87c674b3f2d072ba948b4ddd276b", "sha256": "be480ef842c523622e922ed3c5a0d2a59d671c43f4e7c3c3d627c8933063bc67" }, "downloads": -1, "filename": "mortgage-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "524b87c674b3f2d072ba948b4ddd276b", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5508, "upload_time": "2017-02-12T03:48:52", "url": "https://files.pythonhosted.org/packages/4b/ce/7b7cb4d0df70c0bb35feb155d3af1aa1e9649b2ec9d1dfc5fbe8a839b50d/mortgage-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a9b4b274bcf12c4db67f724b88e700bb", "sha256": "1d41cd8978fa60ca156fa6f4a24e18255752b912d19846380b2b03bcfe3acb5a" }, "downloads": -1, "filename": "mortgage-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a9b4b274bcf12c4db67f724b88e700bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3611, "upload_time": "2017-02-12T03:48:51", "url": "https://files.pythonhosted.org/packages/90/ef/fb2ae56fea66b6cccb705e4fab634c962a860df1bf362010ce0cb86302d5/mortgage-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8d7312b39552008707a81f90884ee4df", "sha256": "0cca4b05945e168fea49a02677fd30a2e083810387528dccccdda5f366d5b0e7" }, "downloads": -1, "filename": "mortgage-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8d7312b39552008707a81f90884ee4df", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7144, "upload_time": "2018-01-19T04:33:36", "url": "https://files.pythonhosted.org/packages/6b/bf/5690d1a99eb00eeb78145d509e92834c9bb6fcbccad5136adbf71ba7aa66/mortgage-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "42f6c14bab5430e2ac9383cdda2d252f", "sha256": "b99d778ebd19ade2767a4b897fe885114cb220c43a0b7051d73275667c4f1caf" }, "downloads": -1, "filename": "mortgage-1.0.1.tar.gz", "has_sig": false, "md5_digest": "42f6c14bab5430e2ac9383cdda2d252f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4911, "upload_time": "2018-01-19T04:33:35", "url": "https://files.pythonhosted.org/packages/60/6b/db4c96f860ee1e10f41cac04e7a8cb5e032473d1488ad38326a4dc58902d/mortgage-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "b4301d26cdffc84dfde2d3d4440e1970", "sha256": "838d6d541df2d4822ba83ece3b7d445d0f4974c50c2a306977d330a9df514ac0" }, "downloads": -1, "filename": "mortgage-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b4301d26cdffc84dfde2d3d4440e1970", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7150, "upload_time": "2018-05-12T22:03:14", "url": "https://files.pythonhosted.org/packages/d2/99/03e9829fa3a19a1c5322d1205de6c64672da3c164b93a1c548f29d9d2700/mortgage-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb001db68dff96325d74856e18b16910", "sha256": "3109e271320432097a53e684a0d12a7dfa378d10afc4acd4808a1bfa6204e8ca" }, "downloads": -1, "filename": "mortgage-1.0.2.tar.gz", "has_sig": false, "md5_digest": "eb001db68dff96325d74856e18b16910", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4848, "upload_time": "2018-05-12T22:03:16", "url": "https://files.pythonhosted.org/packages/9e/6d/d9533db9d0247b66d6deb106231954bddeb7d37014af4e452e0b59997124/mortgage-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "61064b7130a70cdcc53b69f02ba5d2d6", "sha256": "56e06724bff0f629c731ea20496b4e625972384e68baf837fb5c23566fef268a" }, "downloads": -1, "filename": "mortgage-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "61064b7130a70cdcc53b69f02ba5d2d6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6506, "upload_time": "2019-05-05T15:16:38", "url": "https://files.pythonhosted.org/packages/16/a6/3e1a36c954c0b52550600848e1e03ce9cb6fb38e8e052a6f63446473e2c9/mortgage-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a35f51957cf8d1fa51ea1d37c26d5b82", "sha256": "02148bda3cfc1034990f48a84ad44f28ebcc80e545eab139f59e8d4372c5e56e" }, "downloads": -1, "filename": "mortgage-1.0.3.tar.gz", "has_sig": false, "md5_digest": "a35f51957cf8d1fa51ea1d37c26d5b82", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 5861, "upload_time": "2019-05-05T15:16:40", "url": "https://files.pythonhosted.org/packages/1a/a8/605bb7de42c0ef7fa15c457c79235fc7ce209c9d1978ab100bc9abf9e261/mortgage-1.0.3.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "efec934d5e2622bee87242a8785cd05c", "sha256": "d1af39b28d722b06e98087535ef466d9f3422726b268a477f7b4b80d349035e6" }, "downloads": -1, "filename": "mortgage-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "efec934d5e2622bee87242a8785cd05c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6519, "upload_time": "2019-07-11T01:20:32", "url": "https://files.pythonhosted.org/packages/51/b9/e110eb77f30bf2b85639b726c299e5d1950ec6c4d8872c2f958636884f88/mortgage-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6339088984afe0c7ed0e7917632e206", "sha256": "18fcb356c631e9cc27fa7019f6ff6021707e34b9ce3a3b7dc815661288709921" }, "downloads": -1, "filename": "mortgage-1.0.5.tar.gz", "has_sig": false, "md5_digest": "c6339088984afe0c7ed0e7917632e206", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 5903, "upload_time": "2019-07-11T01:20:34", "url": "https://files.pythonhosted.org/packages/9e/fa/e87a74a20ee6631b44507f8f757fa4c723f8f4dd467e39d947bc840b669b/mortgage-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "efec934d5e2622bee87242a8785cd05c", "sha256": "d1af39b28d722b06e98087535ef466d9f3422726b268a477f7b4b80d349035e6" }, "downloads": -1, "filename": "mortgage-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "efec934d5e2622bee87242a8785cd05c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6519, "upload_time": "2019-07-11T01:20:32", "url": "https://files.pythonhosted.org/packages/51/b9/e110eb77f30bf2b85639b726c299e5d1950ec6c4d8872c2f958636884f88/mortgage-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6339088984afe0c7ed0e7917632e206", "sha256": "18fcb356c631e9cc27fa7019f6ff6021707e34b9ce3a3b7dc815661288709921" }, "downloads": -1, "filename": "mortgage-1.0.5.tar.gz", "has_sig": false, "md5_digest": "c6339088984afe0c7ed0e7917632e206", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 5903, "upload_time": "2019-07-11T01:20:34", "url": "https://files.pythonhosted.org/packages/9e/fa/e87a74a20ee6631b44507f8f757fa4c723f8f4dd467e39d947bc840b669b/mortgage-1.0.5.tar.gz" } ] }