I am happy to announce that upcoming release of KDE Partition Manager is split into library (KPMcore) and GUI parts to allow other projects reuse partitioning code. KPMcore is already used by the development versions of distribution independent installer Calamares whose maintainer Teo Mrnjavac contributed a lot to help get this release of KDE Partition Manager out.

In the meantime you can download and test alpha versions of KPMcore and KDE Partition Manager.

KPMcore library is also licensed under GNU GPLv3+ (it links to parted which is GPLv3+).