PythonUnpack200
A Python wrapper for the JDK unpack200 utility.
Usage
The unpack200.unpack function takes three parameters:
- infile: string, full path to the pack200 file to extract
- outfile: string, full path to the jar file you'd like to extract to
- remove_source: bool (optional, default False), whether to remove the pack200 file specified in after extraction is complete
For example:
import unpack200
unpack200.unpack(
r"C:\path o\packfile",
r"C:\path o\outfile"
)
Building
Setup.py is currently only set up for Windows at the moment - feel free to contribute a Linux or Mac PR!
To build, first download and extract the following dependencies to your PC:
- Java JDK source code, e.g. from: https://github.com/dmlloyd/openjdk
- Java JDK built
run:
python3 setup.py build
It will ask you two questions, enter a full path into both, e.g:
Where is the JDK source located? C:\JDK\src
Where is the JDK include located? C:\Program Files\Java\jdk1.8.0_131\include
It will attempt to derive the correct locations for everything from these paths, and should build the extension.
Issues
Found an issue? Please report it either in the issues section of this repo, or to the developers of JDK. Any fix PRs would be welcome!
Metadata
Release files for unpack200 1.0.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 | |
|---|---|---|---|
| unpack200-1.0.1.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unpack200-1.0.1-cp36-cp36m-win32.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-32 | Details |
Total release size: 70.0 kB
Release files / unpack200-1.0.1.tar.gz
| Download URL | unpack200-1.0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaceec8307c1ada4aaa9e3c6602eedf758ab6aecc5c148d7e48c192359f63eb3
|
|
BLAKE2b-256 checksum How to use checksums |
8b2f30fef7b3608cdefe6608f9bb43113b54d186b7bfe641f4db13ecc5b3022e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / unpack200-1.0.1-cp36-cp36m-win32.whl
| Download URL | unpack200-1.0.1-cp36-cp36m-win32.whl |
|---|---|
| Size | 66.1 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-32 |
|
SHA-256 checksum How to use checksums |
0cbcea45b9aefcdd4a7aba8e090e455571e3324909a2c9c4c3dac42979e7294a
|
|
BLAKE2b-256 checksum How to use checksums |
267451bb1b290a97ecaf3d38f18a6c2140bd2b0dc0d647a3f5e6c6b017bb3a84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |