Python bindings for Ladislav Zezula's StormLib.
import mpq
f = mpq.MPQFile("base-Win.MPQ")
if "example.txt" in mpq:
print(mpq.open("example.txt").read())
Modern MPQs support archive patching. The filename usually contains the
from
and to
build numbers.
f.patch("hs-6024-6141-Win-final.MPQ")
Writing MPQs is not supported.
This project is licensed under the terms of the MIT license. The full license text is available in the LICENSE file.