Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

"squish" Python packages into importable stand-alone .pyc files

Project description

Squisher can take a directory representing a Python package (i.e. a directory with __init__.py and so on) and “squish” it into a single .pyc file that you can import, or run on the command line, just like any other .py/.pyc file.

The hook is that it can be thus imported without necessarily having Squisher itself installed. All you do is run Squisher on a directory (or an existing zip file if you wish), and you get a single file you can import with any normal Python installation.

It is complementary to Eggs in a way. They’re good for having packages globally installed and keeping them up-to-date, but very often you may want the simple convenience of dropping a .pyc in a directory and importing it. Furthermore, since Squished packages are just zip files with a special Python bytecode header (and Eggs are just zipfiles with internal metadata added), you can actually run it on an Egg and get a file that can be used as an Egg or a Squished package just by renaming it.

Project details


Release history Release notifications

This version

0.3

Download files

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

Files for squisher, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size squisher-0.3.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

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