calcul des couts de credit immobilier
Project description
immo tools lib
installation
avec pip :
pip install immo-tools-lib
avec poetry :
poetry add immo-tools-lib
usage
from immo_tools import calculator
duration = 300
amount = 250000
year_rate = 1.5
insurance_rate = .26
loan = calculator.build_loan(
duration,
amount,
year_rate,
insurance_rate,
build_summary=True,
duration_unit='month')
# Tableau d'amoritssement :
loan.summary
# montant total des intérêts payés :
loan.get_interests()
# mensualités sans assurance :
loan.get_monthly()
# Coût de l'emprunt au bout de 10 ans :
loan.get_cost(10)
développement
tests
lancer les tests :
pytest
avec le coverage :
pytest --cov
lancer les tests avec nox : (attention, c'est super long !):
nox -r
Permet de lancer les tests sur plusieurs versions de python et de manière isollée.
Nox crée son propre environnement virtuel et y install les dépendances.
L'option -r permet déviter de recréer tout l'environnement virtuel à chaque fois.
build & publish
build :
poetry build
publish sur pypi :
poetry publish --build
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file immo-tools-lib-0.1.3.tar.gz.
File metadata
- Download URL: immo-tools-lib-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b09ba78994ce6ad1c753db8ce730dae89efa6a62ac485d68efb8311497db55f5
|
|
| MD5 |
4d69714a0029d7caaf4a59aa178c1d86
|
|
| BLAKE2b-256 |
e4b28039ebcc1cc3905339cbfb79e783c66946681970016fade1f780ce596d25
|
File details
Details for the file immo_tools_lib-0.1.3-py3-none-any.whl.
File metadata
- Download URL: immo_tools_lib-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.2 CPython/3.7.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33fed29fd7f709cceeb1fdb16538af3db231ce7c2378764b47a91d6a97121c0d
|
|
| MD5 |
394756c33fc238ceabdc9c1563e03dc0
|
|
| BLAKE2b-256 |
ae950f702e2b443091efdc09785ee92719f65baabceb1312d8d7a37f1c6f4f9b
|