I know there's lots of functions that can access/modify the internal fs of img or qcow2 through libguestfs.
I want to know is there any library can modify the raw/qcow2 image directly in Python?
For example, there's function called read_qcow2(), and I can know the content of tmp.qcow2 through the function read_qcow2().