How nikyls007/insurance_managment_system_py works
This is a console-based insurance policy administration program. A customer or agent starts at the menu; the program initializes its server, handles customer registration or login, and lets authenticated customers view details and select a health, motor, or general policy. Agent functions provide customer/policy viewing. Methods.py owns the database operations, while Policy.py handles policy selection. Claims are a documented capability, but the supplied excerpts do not show their implementation or control flow; that branch is therefore marked unverified. Database details and some internal calls are limited to the excerpts.
Main entry points: Methods.py Registration and login · Policy.py Policy selection · main.py Console entry · Customer.py Customer record display
Components 11
Console and access
- Console entry
main.py - Registration and login
Methods.py
Insurance operations
- Customer record display
Customer.py - Policy selection
Policy.py - Policy administration
Methods.py - Agent information view
Methods.py - Claims
Methods.py
Persistence
- Database operations
Methods.py - MySQL database
Other components
- Customer
- Agent
Connections 12
- Customer → Console entry: starts
README.md - Agent → Console entry: starts
README.md - Console entry → Registration and login: starts server and menu
main.py - Registration and login → Policy selection: routes policy access
Methods.py - Policy selection → Policy administration: inserts policy
Policy.py - Policy selection → Policy administration: requests customer details
Policy.py - Policy administration → Customer record display: imports model
Methods.py - Registration and login → Database operations: registers and checks login
Methods.py - Policy administration → Database operations: stores and retrieves policies
Methods.py - Agent information view → Database operations: queries customer policies
Methods.py - Database operations → MySQL database: queries database
Methods.py - Registration and login → Claims: may expose claims
Methods.py