# 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.
Metadata
Release files for mpq 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mpq-1.1.1.tar.gz | 7.1 kB | Details |
Release files / mpq-1.1.1.tar.gz
| Download URL | mpq-1.1.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bbc0602d7ba2400d460f9596b5823c0236f01ba6804727c1f8a17c66d1351ab
|
|
BLAKE2b-256 checksum How to use checksums |
a139af11d7c2fe3ac572eae24906684d94ae3cd29d9ca12dadf7abb0ec421c49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |