How alicepandaree/petappointment_project works
PetAppointment is a command-line pet-clinic record manager. A user selects owners, pets, or appointments, then adds, edits, deletes, searches, or views records; startup loads all three CSV datasets and checks cross-record validity before opening the menus. Domain managers validate and convert records, while a shared manager layer handles common CRUD and persistence through CSV handlers. Optional scripts seed sample records through the same managers. The graph follows the clinic package used by main.py; root-level duplicate modules are not part of that runtime path. Unsampled manager details are represented only where README or excerpts support them.
Main entry points: main.py Startup loading · managers.py Pet manager · sample_data.py Sample data seeder · csv_handler.py CSV handler
Components 14
CLI workflow
- Menus and workflow
main.py - Startup loading
main.py
Record management
- Owner manager
clinic/managers.py - Pet manager
clinic/managers.py - Appointment manager
clinic/managers.py - Shared CRUD manager
clinic/managers.py - Record models
clinic/models.py
CSV persistence
- CSV handler
clinic/csv_handler.py - Owner CSV
- Pet CSV
- Appointment CSV
Sample data
- Sample data seeder
sample_data.py - Appointment seeder
sample_appointments.py
Other components
- Clinic staff
Connections 24
- Clinic staff → Menus and workflow: uses menus
README.md - Menus and workflow → Startup loading: loads at startup
main.py - Menus and workflow → Owner manager: dispatches owner actions
main.py - Menus and workflow → Pet manager: dispatches pet actions
main.py - Menus and workflow → Appointment manager: dispatches appointment actions
main.py - Startup loading → Owner manager: loads and checks
main.py - Startup loading → Pet manager: loads and checks
main.py - Startup loading → Appointment manager: loads and checks
main.py - Owner manager → Shared CRUD manager: inherits CRUD
clinic/managers.py - Pet manager → Shared CRUD manager: inherits CRUD
clinic/managers.py - Appointment manager → Shared CRUD manager: inherits CRUD
clinic/managers.py - Shared CRUD manager → CSV handler: reads and writes
clinic/managers.py - Shared CRUD manager → Record models: builds records
clinic/managers.py - CSV handler → Owner CSV: reads and writes
README.md - CSV handler → Pet CSV: reads and writes
README.md - CSV handler → Appointment CSV: reads and writes
README.md - Pet manager → Owner manager: checks owner references
clinic/managers.py - Appointment manager → Pet manager: checks pet references
clinic/managers.py - Sample data seeder → Startup loading: loads existing records
sample_data.py - Sample data seeder → Owner manager: creates sample owners
sample_data.py - Sample data seeder → Pet manager: creates sample pets
sample_data.py - Sample data seeder → Appointment manager: creates sample appointments
sample_data.py - Appointment seeder → Startup loading: loads existing records
sample_appointments.py - Appointment seeder → Appointment manager: creates sample records
sample_appointments.py