Skip to main content

Python ZipApp Packager

Project description


Support for executing python zip files was added in Python2.6, and in Python3.6, emphasis was added through the zipapp module.

This module contains a buildout recipe and a command line utility to help package Python applications into a zipapp, complete with its dependencies.

One of the use-case for this module is for building complex Hadoop MapReduce job in Python that relies in many dependencies. The zipapp can be distributed easily to Hadoop nodes for execution, or packaged as a script for Hive’s TRANSFORM function

Command Line Tool


pip install koslab.recipe.zipapp


The following example packages Spotify’s Luigi daemon as a zipapp.

# Creates luigi zipapp as luigi.egg
zipapp build luigi -m luigi.cmdline:luigid -o luigi.egg

# Run luigid
python luigi.egg

Buildout Recipe


This recipe depends on collective.recipe.omelette from Plone.


parts =

recipe = collective.recipe.omelette
eggs =
    # Eggs to be included into the zipapp

recipe = koslab.recipe.zipapp
omelette-part = omelette
main-function = MyApp.main:main
output-file = MyApp.pyz

Output file will be created everytime buildout is run


Note: place names and roles of the people who contribute to this package
in this file, one to a line, like so:
  • Joe Schmoe, Original Author
  • Bob Slob, contributed monkey patches
  • Jane Main, wrote flibberty module


1.0 (2015-08-04)

  • Package created using templer [izhar]
  • Initial functioning recipe [izhar]

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for koslab.recipe.zipapp, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size (21.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page