How daniellankry/python_car_rental_oop works
This is a small domain-model library for car rentals, not a complete booking application: it defines customers, vehicles, rental lifecycle and pricing, plus repository contracts and in-memory implementations. The principal modeled workflow is a reserved rental starting (which rents its vehicle), then completing (which returns it); callers supply and persist the domain objects through repositories. Source evidence covers these internal calls and pricing, but there is no application service, user interface, or production persistence workflow in the supplied tree.
Main entry points: entities.py Rental lifecycle · repositories.py Repository contracts · rental_status.py Rental statuses · vehicle_status.py Vehicle statuses
Components 11
Rental domain
- Rental lifecycle
car-rental/src/car_rental/entities.py - Vehicle state
car-rental/src/car_rental/entities.py - Customer record
car-rental/src/car_rental/entities.py - Rental statuses
car-rental/src/car_rental/rental_status.py - Vehicle statuses
car-rental/src/car_rental/vehicle_status.py
Pricing
- Pricing strategies
car-rental/src/car_rental/pricing.py
Repository storage
- Repository contracts
car-rental/src/car_rental/repositories.py - Vehicle repository
car-rental/src/car_rental/repositories.py - Rental repository
car-rental/src/car_rental/repositories.py - Customer repository
car-rental/src/car_rental/repositories.py
Other components
- Library caller
Connections 11
- Library caller → Rental lifecycle: creates and operates
car-rental/src/car_rental/entities.py - Rental lifecycle → Vehicle state: rents or returns
car-rental/src/car_rental/entities.py - Rental lifecycle → Rental statuses: uses states
car-rental/src/car_rental/entities.py - Vehicle state → Vehicle statuses: uses states
car-rental/src/car_rental/entities.py - Rental lifecycle → Pricing strategies: calculates total
car-rental/src/car_rental/entities.py - Repository contracts → Vehicle repository: defines contract
car-rental/src/car_rental/repositories.py - Repository contracts → Rental repository: defines contract
car-rental/src/car_rental/repositories.py - Repository contracts → Customer repository: defines contract
car-rental/src/car_rental/repositories.py - Library caller → Vehicle repository: stores vehicles
car-rental/src/car_rental/repositories.py - Library caller → Rental repository: stores rentals
car-rental/src/car_rental/repositories.py - Library caller → Customer repository: stores customers
car-rental/src/car_rental/repositories.py