title: Using pip to install single class package without module.pyfile import
body: <p>I have a Python package with the following format, where <code>my_package.py</code> contains only a single class <code>myclass</code>:</p>
  
  <pre><code>$ .
  |-- my_package/
      |-- __init__.py
      |-- my_package.py
  |-- LICENSE.in
  |-- README.rst
  |-- setup.py
  </code></pre>
  
  <p>I upload this to pip and am able to install/import what I need with</p>
  
  <pre><code>&gt; pip install my_package
  python&gt; from my_package.my_package import myclass
  </code></pre>
  
  <p>Is there a way of doing this so I don't have to call <code>my_package.my_package</code> and could just call</p>
  
  <pre><code>from my_package import myclass
  </code></pre>
  
  <p>I tried the following structure</p>
  
  <pre><code>$ .
  |-- __init__.py
  |-- my_package.py
  |-- LICENSE.in
  |-- README.rst
  |-- setup.py
  </code></pre>
  
  <p>which I successfully uploaded / installed through pip but when I get the following error when importing</p>
  
  <pre><code>&gt; import my_package
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named my_package
  </code></pre>