mortgage_calculator
Repository that calculate the mortgage roadmap of two types of mortgage calculators:
- Mortgage_Constant_ChargeOff: Mortgage roadmap where you pay an constat chart off each month
- Mortgage_Constant_Pay: Mortgage roadmap where you pay an constat fee each monthmap
How it work:
-
Create en python environent and install the package using de command:
pip install mortgage-roadmap -
Once you get installed the package you can import the packahe in the python module by:
-
import the classes:
from mortgage_roadmap import ( Mortgage_Constant_ChargeOff, Mortgage_Constant_Pay )
-
import the module:
import mortgage_roadmap
-
Examples:
- Basic exaple where we import the nodule with all the classes. Then we change the amount of units that we will as output. Thrn we create a dataframe as output an as last we export the information in an excel file
from mortgage_roadmap import *
Mortgage_Constant_ChargeOff.setDecimals(4)
a = Mortgage_Constant_ChargeOff(100000., 50, 4,8)
a.create_Dataframe
{'roadmap': [{'dept': 133543.56, 'charge_off': 1456.44, '.....'
a.create_XLSX_File('data/xlsx/mortgage_inform.xlsx')
Compatibility:
-
Dependency of this package:
- sympy
- basic-decorators
-
Optional Packages to use all features of this package:
- pandas
- openpyxl
Content:
-
Mortgage_Constant_ChargeOff (class): Class that calculate an constant chargeoff Morgage:
- Parameters:
- INITIAL_DEPT ( int | float): Is the initial dept of the mortgage
- QUOTAS ( int ): Number of quotas of the Mortgage
- APR ( int | float): The interest that must be payed ofver an period of 12 months
- Methods:
- Strict Class Methods:
- getDecimals(cls): strict class method that return the defined number of decimals as output of the calculations
- setDecimals(cls, value: int): strict class method that is used to set the number of decimals as output of the calculations
- Create or Build Informs:
- create_Dataframe(self): Create an dataframe with all the information related with the mortgage
- create_XLS_File(self, path: str): method that create an excel file with the extension '.xls'
- create_XLSX_File(self, path: str): method that create an excel file with the extension '.xlsx'
- create_CSV_File(self, path: str): method that create an comma separated csv file with the extension '.csv'
- Getters:
- self.number_of_decimals: get the number of decimals for the outputs
- self.initial_dept: Is the initial dept of the mortgage
- self.quotas: Number of quotas of the Mortgage
- self.APR: The interest that must be payed ofver an period of 12 months
- self.roadmap: Is the Mortgage roadmap of all the quotas
- self.inform: dict taht include the roadmap but also all the other relevant information of the mortgage
- self.total_interest_pay: That is total amout to pay in interest
- self.total_pay: Is the total ampount to pay of the Mortgage (dept + interest_pay)
- Setters:
- self:number_of_decimals: Setter that define the number of decimals (integer) of the outputs
- Strict Class Methods:
- Parameters:
-
Mortgage_Constant_Pay (class): Class that calculate an constant Pay Morgage:
- Parameters:
- INITIAL_DEPT ( int | float): Is the initial dept of the mortgage
- QUOTAS ( int ): Number of quotas of the Mortgage
- APR ( int | float): The interest that must be payed ofver an period of 12 months
- Methods:
- Strict Class Methods:
- getDecimals(cls): strict class method that return the defined number of decimals as output of the calculations
- setDecimals(cls, value: int): strict class method that is used to set the number of decimals as output of the calculations
- Create or Build Informs:
- create_Dataframe(self): Create an dataframe with all the information related with the mortgage
- create_XLS_File(self, path: str): method that create an excel file with the extension '.xls'
- create_XLSX_File(self, path: str): method that create an excel file with the extension '.xlsx'
- create_CSV_File(self, path: str): method that create an comma separated csv file with the extension '.csv'
- Getters:
- self.number_of_decimals: get the number of decimals for the outputs
- self.initial_dept: Is the initial dept of the mortgage
- self.quotas: Number of quotas of the Mortgage
- self.APR: The interest that must be payed ofver an period of 12 months
- self.roadmap: Is the Mortgage roadmap of all the quotas
- self.inform: dict taht include the roadmap but also all the other relevant information of the mortgage
- self.total_interest_pay: That is total amout to pay in interest
- self.total_pay: Is the total ampount to pay of the Mortgage (dept + interest_pay)
- Setters:
- self:number_of_decimals: Setter that define the number of decimals (integer) of the outputs
- Strict Class Methods:
- Parameters:
Metadata
Release files for mortgage-roadmap 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mortgage_roadmap-0.1.3.tar.gz | 9.6 kB | Without provenance | Details for mortgage_roadmap-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mortgage_roadmap-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for mortgage_roadmap-0.1.3-py3-none-any.whl |
Total release size: 20.0 kB
Release files / mortgage_roadmap-0.1.3.tar.gz
| Download URL | mortgage_roadmap-0.1.3.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dd630b49f5799ae4c32e8efe5a22c2ac2fafa129484b90e0498b816ddba6084
|
|
BLAKE2b-256 checksum How to use checksums |
99739564a853985ee59b7c61346b2e0e4bb78144d325fe389aae9377a083daf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / mortgage_roadmap-0.1.3-py3-none-any.whl
| Download URL | mortgage_roadmap-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df0f9cedda4db8600a7bf9a8b0042fcf60646c1e04609131b8a9ec3340d52a3a
|
|
BLAKE2b-256 checksum How to use checksums |
a8d5dc81c01ae7a84fd1d6a5940f7e319d7a45f15c42d1223316ecd87a1243c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for mortgage-roadmap 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.