Crispy
Simple Python Script Packer
Install / Use
/learn @slerpyyy/CrispyREADME
crispy
Simple Python Script Packer
crispy is a small and simple Python script packer intended to be used in size-coding challenges. It uses dictionary compression to compact the script down to a small string, which is decoded and executed once the minified program is run. The packer itself is fully self-contained and doesn't require any additional packages beyond a basic python install.
Usage
usage: cris.py [-mlxfvh] [-o outfile] infile
a small and simple Python script packer
infile specify the input file
-o outfile specify the output file
-m, --minify minify python script before compressing
-l, --latin1 allow extended ascii chars as placeholders
-x, --hex turn rare chars into hex numbers (experimental)
-f, --fast enable fast compression mode for testing purposes
-v, --verbose increase verbosity level (can be set multiple times)
-h, --help show this help message and exit
Example
In the following example, we want to compress the file "input.py" and store the result in "output.py". We are going to use the following command:
python cris.py input.py -o output.py -m -vv
The "input.py" file in our example looks like this:
print("Hello, hello!")
And the "output.py" file ended up looking like this:
c='print("H~, h~!")~ello'
for i in'~':c=c.split(i);c=c.pop().join(c)
exec(c)
Note: The packer ended up increasing the size of the script, as the input file given in this example was already very small. Because the packer comes with some overhead, it is only really effective, when compressing files in the range of a few kilobytes.
Extra Credit
This project is heavily inspired by RegPack, a javascript packer developed by Siorki. Go check out that GitHub repo if you haven't already: https://github.com/Siorki/RegPack
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
106.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
345.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
