This repository contains a simple Streamlit-based bank management application implemented in project1.py.
The app provides a basic banking interface for creating accounts, depositing money, withdrawing money, viewing account details, updating account information, and deleting accounts.
- Create accounts with name, age, email, and PIN
- Generate a unique account number for each new account
- Store account data in
data.json - Deposit funds into an account
- Withdraw funds from an account
- View account details
- Update account name, email, or PIN
- Delete an account
project1.py: Main Streamlit application andbankclass implementationdata.json: JSON file used to persist account information
- The
bankclass manages account data and exposes methods for account operations. - Account data is loaded from
data.jsonon startup and saved back after every change. - The Streamlit UI is defined in the same file and uses sidebar navigation to select actions.
-
Install Streamlit if needed:
pip install streamlit
-
Run the app:
streamlit run project1.py
-
Open the provided local URL in your browser.
- The current code validates that the user must be at least 18 years old and that the PIN has exactly 4 digits.
- Deposit amounts are limited to a maximum of $10,000 and must be non-negative.
- The app uses a simple JSON file for storage, so it is best suited for demo or learning purposes rather than production use.