lvm2py is a ctypes based binding for lvm's liblvm2app api. There are some limitations to what it can do compared to the command line options available. For example, the resize of Physical and Logical volumes is not implemented in the api yet. Still, contributions are planned in the near future. This is the first release, tested using LVM 2.2, please report any bugs or suggestions to my github repo in the links below or by e-mail: [email protected]
You can download the package from PyPi:
http://pypi.python.org/pypi/lvm2py/
or checkout lvm2py on github:
https://github.com/xzased/lvm2py
You can get reparted using pip to install it from PyPI:
pip install -U lvm2py
Note
You must have liblvm2app installed and available from your LD_LIBRARY_PATH
You can view the documentation and quickstart guide here:
http://xzased.github.com/lvm2py