A simple Python console application that processes command-line instructions.
Pass commands as arguments inside quotes to the wrapper script:
python gt_main_wrapper.py "anagram nagaram"✅ Each string represents a command and its arguments.
Unit tests are located in test_sample.py.
You can run them using the provided bash script or standard Python tools:
./run_unittests.sh
# or
python -m unittest discover -s ..
├── gt_main_wrapper.py # Driver code to pass arguments (Do not edit)
├── main.py # Console app source code where logic goes
├── test_sample.py # unittest test cases
├── run.sh # Bash script to run the application
├── run_unittests.sh # Bash script to run tests
└── README.md # This file
anagram nagaram
rat car
- Commands are parsed in
main.py → handle(self, input_str). - Extend the
handlemethod to implement actual business logic. - State can be maintained class variables, dictionaries, or separate helper methods within the
Mainclass.