One stop for all your parking needs. And surprisingly there are no humans involved.
I visualize a time when we will be to robots what dogs are to humans, and I’m rooting for the machines.
Just clone the repository and you get two major commands to perform:
- For running the program:
./parking_lot <<input_file>>
If the input_file path is not provided, then an interactive shell opens up and you can use the following commands:
- create_parking_lot
- status
- registration_numbers_for_cars_with_colour
- slot_number_for_registration_number
- slot_numbers_for_cars_with_colour
- park
- leave
- If you want to make a build, run the tests and then launch the program, then enter the following commands:
source .bashrc
parking_lot
NOTE: To make the build process successfull, you need pyinstaller
which you can easily install using the command:
pip install pyinstaller
To run the tests on the code, enter the following command from the root of the root of the directory:
python -m unittest discover -s ./park_matic/tests/ -p 'test_*.py'
- Python 2.7
- Shikher Aatrey
This project is licensed under the MIT License - see the LICENSE.md file for details