Skip to main content

A Python wrapper for the JDK unpack200 utility

Project description


A Python wrapper for the JDK unpack200 utility.


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 <infile> after extraction is complete

For example:

import unpack200

	r"C:\path	o\packfile",
	r"C:\path	o\outfile"

Building 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:


python3 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.


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!

Project details

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
unpack200-1.0.1-cp36-cp36m-win32.whl (66.1 kB) Copy SHA256 hash SHA256 Wheel cp36
unpack200-1.0.1.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page