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 | Provenance | Actions |
|---|---|---|---|---|
| mpq-1.1.1.tar.gz | 7.1 kB | Without provenance | Details for mpq-1.1.1.tar.gz |
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 |
Security for mpq 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.