A loan advisory system using M-Pesa statement analysis and Gemini AI.
Project description
M-Pesa Loan Advisory System with Gemini AI
This project provides a web-based loan advisory system that analyzes a user's M-Pesa statement (PDF) to assess their financial behavior and recommends a suitable loan amount and payment period using Google's Gemini AI.
Features
- PDF Statement Analysis: Extracts and categorizes M-Pesa transactions from a password-protected PDF.
- Financial Metric Derivation: Calculates key financial indicators like average monthly income, expenses, and existing loan repayments.
- Gemini AI Integration: Passes derived financial data to the Gemini Pro model for detailed financial behavior analysis and personalized loan recommendations (amount and tenure within 1 year).
- Web Interface: A simple Flask web application for users to upload their M-Pesa PDF and receive advice.
- Modular Design: Organized into distinct Python modules for better maintainability and testability.
Directory Structure
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
mpesa_analysis-0.1.0.tar.gz
(10.4 kB
view details)
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 mpesa_analysis-0.1.0.tar.gz.
File metadata
- Download URL: mpesa_analysis-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82fa24ca0a183e59d00fc37909d203ba7e59cca485f9a39a434b2a36d6af7691
|
|
| MD5 |
5b591ece8841a6901b83f4803be67d40
|
|
| BLAKE2b-256 |
deb812fb4e3028e27dfd6f4889bcf21c40201409fe76c49935f025a7f7731953
|
File details
Details for the file mpesa_analysis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mpesa_analysis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5891f93a43e3f0cd8481e7d5d8696e2011e3d0efb2e48c4c5ecec198771d8fd3
|
|
| MD5 |
c458a3abe8c7d499fb44c58cc6f6dc3d
|
|
| BLAKE2b-256 |
e0ac0beea3158bc61c454764b7f2295bfa2f741ec72c6083773d1f7b193d0e14
|