Inofficial Pyton wrapper for ProcDump - Windows Sysinternals | Microsoft Docs
Very easy to use:
from PyPDump import ProcDump
dumpfile = r"C:\MiniDumpWithFullMemoryx.dmp"
pid = 16544
createdump = True
if createdump:
erg = (
ProcDump(executeable=r"C:\Program Files\procdump.exe")
.o()
.ma()
.add_own_parameter_or_option(f"{pid}")
.add_target_file_or_folder([dumpfile])
.run()
))