Skip to main content

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

immo-tools-lib-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

immo_tools_lib-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for immo-tools-lib-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b09ba78994ce6ad1c753db8ce730dae89efa6a62ac485d68efb8311497db55f5
MD5 4d69714a0029d7caaf4a59aa178c1d86
BLAKE2b-256 e4b28039ebcc1cc3905339cbfb79e783c66946681970016fade1f780ce596d25

See more details on using hashes here.

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

Hashes for immo_tools_lib-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33fed29fd7f709cceeb1fdb16538af3db231ce7c2378764b47a91d6a97121c0d
MD5 394756c33fc238ceabdc9c1563e03dc0
BLAKE2b-256 ae950f702e2b443091efdc09785ee92719f65baabceb1312d8d7a37f1c6f4f9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page