Pypit

Shell pipeline builder
Download

Pypit Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Namlook
  • Publisher web site:
  • http://bitbucket.org/namlook/

Pypit Tags


Pypit Description

Shell pipeline builder Pypit is a Python library for building shell pipeline easily via configuration.The principe is simple: create a configuration which describes a programmes list with all options and your done.Exemple:Let's say we have a file.txt with the following content:HellOFooBARBlaThe following configuration will sort the file.txt and lower all capitalize chars:>>> config = To process this configuration:>>> from pypit import Pypit>>> result = Pypit(config).run()>>> print resulthellofooblabarExplanationpath, name are required.you can pass all options and arguments to options.If input is "STDIN", the input will be take from the standard input. If input if a file name, this file will be used as input.If ouput is not defined, the output will be send to the standard output. If output is a file name, the output will be writed to the file.Sometimes, we need to call direclty shell command. To do so, add 'shell' = True to the configuration and pass all options directly to name:>>> config = >>> Pypit(config).run()'6\n'Shell script usagePypit package provides a shell commands to execute pypit configuration in yaml format. To do the following example, you have to create a config.yaml file:- path: /bin shell: true name: echo "12345"- path: /usr/bin name: wc input: STDIN options: -cthen call the pypit programme with the config file as argument:$ pypit config.yaml6 Requirements: · Python What's New in This Release: · fix issue when with utf-8 options


Pypit Related Software