{"id":19830006,"url":"https://github.com/2003harsh/bank-management-system-using-python-and-mysql","last_synced_at":"2026-05-15T18:32:39.869Z","repository":{"id":248832352,"uuid":"829900129","full_name":"2003HARSH/Bank-Management-System-using-Python-and-MySql","owner":"2003HARSH","description":"The Bank Management System is a Python-based application utilizing Tkinter for its graphical user interface and MySQL for database management. This project allows users to manage their bank accounts by providing functionalities to open new accounts, check balances, deposit and withdraw money, and close accounts. ","archived":false,"fork":false,"pushed_at":"2024-07-19T13:41:53.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T16:34:17.528Z","etag":null,"topics":["mysql-connector-python","mysql-database","object-oriented-programming","python3","tkinter-gui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2003HARSH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-17T08:05:37.000Z","updated_at":"2024-07-19T13:41:57.000Z","dependencies_parsed_at":"2025-01-11T09:46:51.215Z","dependency_job_id":"c19b817b-d08f-4fc5-8cd9-99a38161caa1","html_url":"https://github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql","commit_stats":null,"previous_names":["2003harsh/bank-management-system-using-python-and-mysql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/2003HARSH/Bank-Management-System-using-Python-and-MySql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2003HARSH%2FBank-Management-System-using-Python-and-MySql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2003HARSH%2FBank-Management-System-using-Python-and-MySql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2003HARSH%2FBank-Management-System-using-Python-and-MySql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2003HARSH%2FBank-Management-System-using-Python-and-MySql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2003HARSH","download_url":"https://codeload.github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2003HARSH%2FBank-Management-System-using-Python-and-MySql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mysql-connector-python","mysql-database","object-oriented-programming","python3","tkinter-gui"],"created_at":"2024-11-12T11:21:14.474Z","updated_at":"2026-05-15T18:32:39.844Z","avatar_url":"https://github.com/2003HARSH.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bank Management System\n\nThis is a Bank Management System project using Python and Tkinter for the GUI and MySQL as the database. This application allows users to open accounts, check balances, deposit and withdraw money, and close accounts. Additionally, it provides an admin interface for viewing all account details.\n\n## Preview\n![](https://github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql/blob/main/docs/static/1.jpg)\n![](https://github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql/blob/main/docs/static/2.jpg)\n![](https://github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql/blob/main/docs/static/3.jpg)\n![](https://github.com/2003HARSH/Bank-Management-System-using-Python-and-MySql/blob/main/docs/static/4.jpg)\n\n## Features\n\n- **User Login**:\n  - Open a new account\n  - Deposit money\n  - Withdraw money\n  - Check balance\n  - Close account\n\n- **Admin Login**:\n  - View all account details\n\n## Prerequisites\n\n- Python 3.x\n- MySQL Server\n- Tkinter library for Python\n- MySQL Connector for Python\n\n## Installation\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/yourusername/bank-management-system.git\n   cd bank-management-system\n   ```\n\n2. **Install the required libraries**:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Create the database**:\n   - Open MySQL command line or any MySQL client.\n   - Create a database named `bank`:\n     ```sql\n     CREATE DATABASE bank;\n     ```\n   - Create the necessary tables:\n     ```sql\n     USE bank;\n     CREATE TABLE ACCOUNT (\n       ACNO INT PRIMARY KEY,\n       NAME VARCHAR(100),\n       DOB DATE,\n       PHONE_NO VARCHAR(15),\n       ADDRESS VARCHAR(255),\n       OPENING_BALANCE INT\n     );\n\n     CREATE TABLE SECURED (\n       ACNO INT PRIMARY KEY,\n       PASSWORD VARCHAR(255)\n     );\n     ```\n\n4. **Run the application**:\n   ```bash\n   python main.py\n   ```\n   OR\n   ```bash\n   python BANK MANAGEMENT.py\n   ```\n\n## Usage\n\n### User Interface\n\n1. **Open Account**:\n   - Fill in the required details: Name, Account Number, Date of Birth, Phone Number, Opening Balance, Password, Address.\n   - Click the \"Submit\" button to open the account.\n\n2. **Deposit Amount**:\n   - Enter the account number and amount to deposit.\n   - Click the \"Submit\" button to deposit the amount.\n\n3. **Withdraw Amount**:\n   - Enter the account number, amount to withdraw, and password.\n   - Click the \"Submit\" button to withdraw the amount.\n\n4. **Check Balance**:\n   - Enter the account number and password.\n   - Click the \"Submit\" button to check the balance.\n\n5. **Close Account**:\n   - Enter the account number and password.\n   - Click the \"Submit\" button to close the account.\n\n### Admin Interface\n\n1. **Admin Login**:\n   - Enter the admin password.\n   - If authenticated, click the \"Show Data\" button to view all account details.\n\n## Code Explanation\n\nThe main functions are:\n\n- `openAcc()`: Opens a new account.\n- `checkBal()`: Checks the balance of an account.\n- `closeAcc()`: Closes an account.\n- `depoAmo()`: Deposits an amount into an account.\n- `withAmo()`: Withdraws an amount from an account.\n- `user_options()`: Provides user options.\n- `admin_options()`: Provides admin options.\n- `main()`: Main function to run the application.\n\nEach function creates a new window using Tkinter's `Toplevel` widget and interacts with the MySQL database using `mysql.connector`.\n\n## License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2003harsh%2Fbank-management-system-using-python-and-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2003harsh%2Fbank-management-system-using-python-and-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2003harsh%2Fbank-management-system-using-python-and-mysql/lists"}