Python parted Module
Python bindings for libparted
pyparted is a set of native Python bindings for libparted. libparted is the
library portion of the GNU parted project. With pyparted, you can write
applications that interact with disk partition tables and filesystems.
The Python bindings are implemented in two layers. Since libparted itself
is written in C without any real implementation of objects, a simple 1:1
mapping of externally accessible libparted functions was written. This
mapping is provided in the _ped Python module. You can use that module if
you want to, but it's really just meant for the larger parted module.
_ped libparted Python bindings, direct 1:1: function mapping
parted Native Python code building on _ped, complete with classes,
exceptions, and advanced functionality.
The _ped module does not use SWIG or Pyrex as the upstream developer uses
the module to test libparted functionality directly.