Which version of fabric API is installed

fabric, python

Solution

There's the version submodule in fabric:

>>>import fabric.version
>>>fabric.version.get_version()
'1.2.2'

Problem

How might I discover which version of fabric I have installed - through the API? I understand that I can just run ``` $ fab --version ``` but I'd rather be doing something like ``` >>> import fabric >>> fabric.version '1.4.1' ```

Original source