Python bindings for StormLib
Project Description
# python-mpq
Python bindings for Ladislav Zezula's [StormLib](http://zezula.net/en/mpq/stormlib.html).
## Usage
### Reading MPQs
```py
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.
```py
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.
Python bindings for Ladislav Zezula's [StormLib](http://zezula.net/en/mpq/stormlib.html).
## Usage
### Reading MPQs
```py
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.
```py
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.
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size & hash SHA256 hash help | File type | Python version | Upload date |
---|---|---|---|
mpq-1.1.1.tar.gz (7.1 kB) Copy SHA256 hash SHA256 | Source | None | May 14, 2016 |