This project is a Python-based application designed to perform specific tasks. The codebase is organized into src for the main application logic and tests for unit tests.
- Python 3.6+
- Dependencies listed in
requirements.txt
-
Clone the repository:
git clone https://github.com/monk-coder/test-task-traektory.git cd test-task-traektory -
Install dependencies:
pip install -r requirements.txt
To run the program, use the following command:
python main.pyYou can also use command line options to check specific time slots or find free slots. Here are the available options
python main.py -c "YYYY-MM-DD HH:MM-HH:MM"For example, to check a slot from 10:00 to 12:00 on January 1, 2026:
python main.py -c "2026-01-01 10:00-12:00"python main.py -bpython main.py -f "YYYY-MM-DD"For example, to find a free slot on January 1, 2026:
python main.py -f "2023-10-01"python main.py -d "HH:MM"For example, to find all free slots for 1 hour:
python main.py -d "01:00"To run the tests, use pytest:
pytest -ra -q tests/Ensure all dependencies are installed before running the tests.