title: Python, run package with `python3.6 -m somepackge.run`
body: <p>I'd like to do the same I can do with <code>python3.6 -m http.server</code>. I'd like to run my oneliner like that. How do I do this? For now I've got:</p>
  
  <pre><code>def run():
      print('Great!')
  
  
  if __name__ == '__main__':
      run()
  </code></pre>
  
  <p>I tried <code>python3.6 -m fastapi</code> and I've got <code>/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6: No module named test.__main__; 'test' is a package and cannot be directly executed</code>,</p>
  
  <p>and with <code>python3.6 -m fastapi.run</code> <code>/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6: No module named test.run</code></p>