pythonのコマンドラインツールclintが面白そうなので試してみます https://github.com/kennethreitz/clint clint自体がコマンドラインツールというわけではなく、pythonでコマンドラインツールを作成するときに便利なライブラリです インストール pip install clint 使い方 出力に色をつける from clint.textui import colored print colored.red('hello!') print colored.green('hello!') print colored.blue('hello!') 結果 出力をインデントする from clint.textui import indent, puts # インデントしない puts('not intended hello') # 4文字分インデント w