- main.py: Terminal interface operations.
- vehicle.py: Vehicle information class.
- parking_lot.py: Parking utility functions.
Exceptions are handled, and any errors during execution are logged in a separate file named error.log.
- Contains vehicle unique number and is expandable to add further information.
- Functions:
assign_parking_space
: Assigns a parking space to a vehicle.retrieve_parking_spot
: Retrieves information about a parked vehicle.unpark_vehicle
: Unparks a vehicle.
- Terminal UI for user interaction.
- Options for users to select various parking operations.
-
Clone the repository:
git clone https://github.com/GSHitesh/leegality_parkinglot.git cd leegality_parkinglot
-
Run the program:
python3 main.py
- Comments and annotations are used throughout the code for clarity.
- Variable types and return types are clearly documented.