piprun

Specify scripts' PyPI dependencies inline


Licenses
GPL-3.0/GPL-3.0+
Install
pip install piprun==0.0.6

Documentation

piprun

piprun lets you specify PyPI packages your script needs inline:

#!/usr/bin/env piprun Flask==0.10.1 --

from flask import Flask
app = Flask(__name__)

# ...

Optionally, specify the Python interpreter path (e.g. for Python 2) as the first argument:

#!/usr/bin/env piprun /usr/bin/python2 Flask==0.10.1 --
# ...