How ongechiosiango/banking-system works
This is a minimal in-memory banking system. Its demonstrated workflow opens accounts, deposits money, transfers money between accounts, and prints resulting balances. The Bank class owns account state and implements balance-checked withdrawals and transfers; Account models each account using Decimal. The README also documents withdrawals as a user capability. main.py is an unrelated generated utility, not part of the banking workflow.
Main entry points: bank.py Bank
Components 5
Other components
- User
- Bank CLI
bank.py - Bank
bank.py - Account State
bank.py - Account
bank.py
Connections 6
- User → Bank CLI: runs
- Bank CLI → Bank: creates and operates
- Bank → Account: opens
- Bank → Account State: stores and updates
- Bank → Bank: transfer calls withdraw and deposit
- Bank CLI → Account State: prints balances