Skip to main content

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpq-1.1.1.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file mpq-1.1.1.tar.gz.

File metadata

  • Download URL: mpq-1.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mpq-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9bbc0602d7ba2400d460f9596b5823c0236f01ba6804727c1f8a17c66d1351ab
MD5 36f31e5c25695a6f7dd760001640e78a
BLAKE2b-256 a139af11d7c2fe3ac572eae24906684d94ae3cd29d9ca12dadf7abb0ec421c49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page