Skip to content

bdowdell/cuffnote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuffnote

A python library for simple mortgage calculations

package modules

  1. cuffnote.mortgages.Mortgage: The base class represents a plain vanilla mortgage
  2. cuffnote.mortgages.ExtraMonthlyPrincipal: Inherits from the base class & allows modelling a mortgage with extra monthly principal payments. The start date of the extra payments does not have to be the same as the start date of the loan.
  3. cuffnote.mortgages.AnnualLumpPayment: Inherits from both base class & ExtraMonthlyPrincipal. Allows modelling a mortgage with annual principal lump payments that occur only once a year.

running unittests using coverage & unittest

Launch the unittests using coverage:

$ coverage run -m unittest -v tests/test_* ; coverage html