title: How to make PyCharm pipe python program output through another text processor program
body: <p>I find no way to have PyCharm pipe process my Python program's output. Specifically, I'm using bunyan (<a href="https://github.com/complyue/python-bunyan" rel="nofollow">Python Bunyan</a> ported from <a href="https://github.com/trentm/node-bunyan" rel="nofollow">Node Bunyan</a>) from my program, it generates JSON log to stderr:</p>
  
  <p>Python Code:</p>
  
  <pre><code>logger.info({'nick': 'Duke', 'age': 30, 'expertise': ['Java', 'Javascript', 'Python']},
              'Hi %(nick)s, your expertise recorded!');
  </code></pre>
  
  <p>Raw output:</p>
  
  <pre><code>cymp:scratches cyue$ python logging-wander.py 
  {"name": "__main__", "expertise": ["Java", "Javascript", "Python"], "nick": "Duke", "age": 30, "time": "2016-08-02T18:16:12Z", "msg": "Hi Duke, your expertise recorded!", "hostname": "cymp.local", "level": 30, "pid": 1418, "v": 0}
  </code></pre>
  
  <p>Pipe processed output:</p>
  
  <pre><code>cymp:scratches cyue$ python logging-wander.py 2&gt;&amp;1 | bunyan
  [2016-08-02T18:16:15Z]  INFO: __main__/1419 on cymp.local: Hi Duke, your expertise recorded! (nick=Duke, age=30)
      expertise: [
        "Java",
        "Javascript",
        "Python"
      ]
  </code></pre>
  
  <p>The output is piped to bunyan's command line tool for pretty print (there're even colors in terminals, but not shown here).</p>
  
  <p>In WebStorm for js, I can add a local shell script as 'Node interpreter' to do the job, but for PyCharm, their's no 'Add' option for 'Python interpreter' in the 'Run/Debug Configuration' dialog, and it complains <code>The selected file is not a valid home for PythonSDK</code> when I try to add the shell script as 'Project Interpreter'.</p>
  
  <p>I wonder any workaround can be used to have my desired result?</p>