Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 655 Bytes

File metadata and controls

19 lines (15 loc) · 655 Bytes

cli

Multi language command line interfaces template

Python

I got inspired from Writing Awesome Command-Line Programs in Python by Mark Smith and started to write an python cli template.

Features

  • Logging by python logger module
  • Can handle signals
  • Pars argument by argparser (an inbox python library)
  • Compatible with python 2 and 3
  • Can print the output to file or CSV
  • Can be set to terminate gracefully
  • Uses Popen (an inbox python subprocess module)
  • Json support

Reference

Writing Awesome Command-Line Programs in Python