Skip to content

Instantly share code, notes, and snippets.

@e3krisztian
Last active August 29, 2015 14:18
Show Gist options
  • Save e3krisztian/5f569bc5617f1caf3d7b to your computer and use it in GitHub Desktop.
Save e3krisztian/5f569bc5617f1caf3d7b to your computer and use it in GitHub Desktop.
PEX tools
# PEX
( VE="$(mktemp -d)"; virtualenv "$VE"; . "$VE/bin/activate"; pip install pex; pex -r pex -e pex.bin.pex:main -o ~/bin/pex; rm -rf "$VE"; )
# Python
pex -r autopep8 -e autopep8:main -o ~/bin/autopep8
pex -r pip-init -e pip_init:main -o ~/bin/pip-init
pex -r pyrene -e pyrene.main:main -o ~/bin/pyrene
# pex -r yolk -e yolk.cli:main -o ~/bin/yolk
pex -r ptpython -e ptpython.entry_points.run_ptpython:run -o ~/bin/ptpython
pex -r ptpython -r ipython -e ptpython.entry_points.run_ptipython:run -o ~/bin/ptipython
# Data processing
pex -r sqlite_browser -r flask -r peewee -e sqlite_browser.sqlite_browser:main -o ~/bin/sqlite_browser
pex -r csvkit -e csvkit.utilities.csvlook:launch_new_instance -o ~/bin/csvlook
# not yet:
# pex -r petl -e bin.petl -o ~/bin/petl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment