Aug-06-2020, 05:46 AM
Not a Windows user here, but there is a module infi.diskmanagement in Pypi that says
It could be worth trying.
Quote:This module gives the same functionality as diskpart. But unlike diskpart, it does not use VDS, it uses SetupAPI and direct IOCTLs to the disks, volumes, and the mount and partitions managers
It could be worth trying.