Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.27 KB

File metadata and controls

62 lines (41 loc) · 1.27 KB

Python Starter Kit

A simple Python console application that processes command-line instructions.


🚀 How to Run

1. Run the App

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.


🧪 Run Tests

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 .

🗂️ Project Structure

.
├── 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

📌 Example Commands

anagram nagaram
rat car

🛠️ Implementation Notes

  • Commands are parsed in main.py → handle(self, input_str).
  • Extend the handle method to implement actual business logic.
  • State can be maintained class variables, dictionaries, or separate helper methods within the Main class.