How ashfak99/paysim works
This repository is a small interactive wallet/account prototype: a user enters account actions in a command-line menu, which creates account IDs and invokes account or balance services. Account operations maintain in-memory user and fund lists; the balance operation reads the fund list. Although the README names AI fraud detection and real-time payments, the provided tree and source excerpts show no such implementation. Evidence is limited to the README and sampled source; transfer-related types and ID generation exist, but no transfer workflow is shown.
Main entry points: main.py Command menu · user_repo.py Account repository · fund_repo.py Fund repository · user_services.py Account operations
Components 9
CLI interface
- Command menu
server/src/main.py - Account ID generator
server/src/utils/_id_generator.py
Account services
- Account operations
server/src/services/user_services.py - Balance lookup
server/src/services/fund_services.py
Wallet state
- User record
server/src/model/user_model.py - Fund and transfer types
server/src/model/fund_model.py - Account repository
server/src/repository/user_repo.py - Fund repository
server/src/repository/fund_repo.py
Other components
- Account user
Connections 11
- Account user → Command menu: chooses actions
server/src/main.py - Command menu → Account ID generator: generates ID
server/src/main.py - Command menu → User record: creates record
server/src/main.py - Command menu → Account operations: requests account action
server/src/main.py - Command menu → Balance lookup: requests balance
server/src/main.py - Account operations → Account repository: manages accounts
server/src/services/user_services.py - Account repository → User record: stores users
server/src/repository/user_repo.py - Account repository → Fund and transfer types: creates initial fund
server/src/repository/user_repo.py - Account repository → Fund repository: adds initial funds
server/src/repository/user_repo.py - Balance lookup → Fund repository: checks balance
server/src/services/fund_services.py - Fund repository → Fund and transfer types: returns fund record
server/src/repository/fund_repo.py