Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 '[300,100,200,400]'

✅ 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

python gt_main_wrapper.py '[300,100,200,400]'

python gt_main_wrapper.py '[100]'


🛠️ 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages