Python lvm bindings
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: firstname.lastname@example.org
You can download the package from PyPi:
or checkout lvm2py on github:
You can get reparted using pip to install it from PyPI:
pip install -U lvm2py
You can view the documentation and quickstart guide here:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.