IMAPClient can easily be installed with pip:
$ pip install imapclient
IMAPClient is developed on GitHub, you can find the code at mjs/imapclient.
You can clone the public repository:
$ git clone https://github.com/mjs/imapclient.git
Once you have the sources, simply install IMAPClient with:
$ cd imapclient $ pip install -e .