A comprehensive OOP library for assessing loan eligibility using credit scoring, risk assessment, and financial analysis.
Project description
Loan Eligibility Engine
A comprehensive Python library for assessing loan eligibility using credit scoring, risk assessment, and financial analysis.
Installation
pip install loan-eligibility-engine
Quick Start
from loan_eligibility_engine import (
EligibilityCalculator,
LoanApplication,
Applicant,
LoanType,
EmploymentType,
)
# Create an applicant
applicant = Applicant(
name="John Doe",
age=35,
annual_income=75000,
employment_type=EmploymentType.SALARIED,
credit_score=720,
existing_loans=1,
monthly_expenses=2000,
years_of_employment=8,
has_collateral=True,
dependents=2,
)
# Create a loan application
application = LoanApplication(
applicant=applicant,
loan_type=LoanType.HOME,
loan_amount=250000,
loan_term_months=240,
purpose="Purchase primary residence",
)
# Evaluate eligibility
calculator = EligibilityCalculator()
decision = calculator.evaluate(application)
print(f"Status: {decision.status.value}")
print(f"Score: {decision.eligibility_score}")
print(f"Max Amount: {decision.max_eligible_amount}")
print(f"Interest Rate: {decision.recommended_interest_rate:.2%}")
Features
- Credit score analysis with configurable thresholds
- Multi-factor risk assessment (income, debt, employment, age)
- Application validation with detailed error reporting
- Support for personal, home, auto, and education loans
- Quick pre-screening checks
- Conservative mode for stricter assessments
License
MIT
Project details
Release history Release notifications | RSS feed
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 loan_eligibility_engine-1.0.0.tar.gz.
File metadata
- Download URL: loan_eligibility_engine-1.0.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1549e27da662a907b5b565a0a8d7e681a33b8de2c015bbe820180ed2723669a3
|
|
| MD5 |
6e22385bc3eabb37583a03158e008306
|
|
| BLAKE2b-256 |
3f6fe6707053778232f91de78d8b04b1ad465754837130494c15c70f20f6e270
|
File details
Details for the file loan_eligibility_engine-1.0.0-py3-none-any.whl.
File metadata
- Download URL: loan_eligibility_engine-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ecee243ac183fdbe7f2f79a12e78d02ffd3f84c3592dec715e73412f88b8ecd
|
|
| MD5 |
ef68c97a3b52a6545e9861ca7c236024
|
|
| BLAKE2b-256 |
f8e410574de6263b6a1042a90117049f5419383c19857bdccf9cfd9be6ed63cf
|