A mock banking app. To use, run the package directly python -m banking
or
install via pip and use the banking
executable. There are four commands:
account
, service
, customer
, and employee
, for operating on various parts
of the business. Running a command without arguments will present you with a
help menu including available subcommands (python -m banking employee
).
- Data model
- Functionality
- Organize
- Logging
- Documentation
- Testing
- Python 3
- PostgreSQL for data persistence
- Click for the command line interface
- SQLAlchemy for object-relational mapping
- pytest for testing
Employee.manager_id
is a self-referential foreign key to Employee.id
, to
model the relationship between managers and reports.
Because customers and accounts have a many to many relationship, they are
modeled with a junction table AccountCustomer
.