Skip to content

Getting started

Basic usage

from pipepy import ls, grep

print(ls)  # prints contents of current folder
if ls | grep('info.txt'):
      print('info.txt found')

Importing commands

Most shell commands are importable straight from the pipepy module. Dashes in commands' names are converted to underscore (docker-composedocker_compose).

from pipepy import ls, grep, docker_compose

Commands that cannot be found automatically can be created with the PipePy constructor:

from pipepy import PipePy

custom_command = PipePy('./bin/custom')
python_script = PipePy('python', 'script.py')