jleclanche / python-mpq

StormLib-based Python MPQ bindings

Home Page:http://zezula.net/en/mpq/stormlib.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-mpq

Python bindings for Ladislav Zezula's StormLib.

Usage

Reading MPQs

import mpq
f = mpq.MPQFile("base-Win.MPQ")

if "example.txt" in mpq:
	print(mpq.open("example.txt").read())

Patching MPQs

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

Writing MPQs is not supported.

License

This project is licensed under the terms of the MIT license. The full license text is available in the LICENSE file.

About

StormLib-based Python MPQ bindings

http://zezula.net/en/mpq/stormlib.html

License:MIT License


Languages

Language:C++ 76.1%Language:Python 22.5%Language:C 1.3%