Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.225.743 Times

Pypit 0.1

Company: Namlook
Date Added: November 22, 2013  |  Visits: 297

Pypit

Report Broken Link
Printer Friendly Version


Product Homepage
Download (33 downloads)



Pypit is a Python library for building shell pipeline easily via configuration.<br /><br />The principe is simple: create a configuration which describes a programmes list with all options and your done.<br /><br />Exemple:<br /><br />Let's say we have a file.txt with the following content:<br /><br />HellO<br />Foo<br />BAR<br />Bla<br /><br />The following configuration will sort the file.txt and lower all capitalize chars:<br /><br />>>> config = [<br />... {<br />... "path": "/usr/bin",<br />... "name": "sort",<br />... "input": "file.txt",<br />... "options": "-r",<br />... },<br />... {<br />... "path": "/usr/bin",<br />... "name": "tr",<br />... "input": "STDIN",<br />... "options": "A-Z a-z"<br />... }<br />...]<br /><br />To process this configuration:<br /><br />>>> from pypit import Pypit<br />>>> result = Pypit(config).run()<br />>>> print result<br />hello<br />foo<br />bla<br />bar<br /><br />Explanation<br /><br />path, name are required.<br /><br />you can pass all options and arguments to options.<br /><br />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.<br /><br />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.<br /><br />Sometimes, we need to call direclty shell command. To do so, add 'shell' = True to the configuration and pass all options directly to name:<br /><br />>>> config = [<br />... {<br />... "shell": True,<br />... "path": "/bin",<br />... "name": 'echo "12345"',<br />... },<br />... {<br />... "path": "/usr/bin",<br />... "name": "wc",<br />... "input": "STDIN",<br />... "options": "-c"<br />... }<br />...]<br />>>> Pypit(config).run()<br />'6n'<br /><br />Shell script usage<br /><br />Pypit 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:<br /><br />-<br /> path: /bin<br /> shell: true<br /> name: echo "12345"<br /><br />-<br /> path: /usr/bin<br /> name: wc<br /> input: STDIN<br /> options: -c<br /><br />then call the pypit programme with the config file as argument:<br /><br />$ pypit config.yaml<br />6<br /><br />#md5=2cebc606746adb5912b80ad3181b245f

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Config Configuration Create Filetxt Input Namegtgtgt Options Output Programme Pypit Quotinputquot Quotnamequot Quotoptionsquot Quotpathquot Quotshellquot Quotstdinquot Quotusrbinquot Shell Standard
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


PYPIT RELATED
Libraries  -  Tie::Layers 0.06
SYNOPSIS ##### # Subroutines # use Tie::Layers qw(is_handle config); $yes = is_handle( $file_handle ); ($key, $old_value) = config(%options, $key); ($key, $old_value) = config(%options, $key => $new_value ); #### # Config default...
71.68 KB  
Text Management  -  Read configuration from a text file 1.0
In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets. This Python class reads such a file.
 
Utilities  -  Pipemeter 1.1.3
Pipemeter is a command line utility that displays the speed and, if possible, progress, of data moving from its input to its output..
18.43 KB  
Utilities  -  nVentory Alpha 1
nVentory software is a hardware and configuration inventory manager, that will eventually output XML files, which can be used to define configurations in other tools and processes (such as software builds, cfengine configuration, Nagios...
245.76 KB  
Audio Tools  -  Hypercyclic 1.1.367
Hypercyclic is an LFO-driven MIDI arpeggiator, gate effect and step sequencer for mangling sustained MIDI input chords, the output of which can then drive other MIDI instruments. Two tempo-synced LFOs can be used to modulate various parameters...
10.4 MB  
Audio Tools  -  Hypercyclic for Mac OS X 1.1.367
Hypercyclic is an LFO-driven MIDI arpeggiator, gate effect and step sequencer for mangling sustained MIDI input chords, the output of which can then drive other MIDI instruments. Two tempo-synced LFOs can be used to modulate various parameters...
10.4 MB  
Audio Tools  -  Hypercyclic for Linux 1.1.367
Hypercyclic is an LFO-driven MIDI arpeggiator, gate effect and step sequencer for mangling sustained MIDI input chords, the output of which can then drive other MIDI instruments. Two tempo-synced LFOs can be used to modulate various parameters...
10.4 MB  
Development Editors  -  pythonProp 0.10
pythonProp is a collection of Python scripts designed to create voacap input (.dat) files and plot the resulting predictions. The package makes use of the matplotlib library (voaAreaPlot also requires the basemap toolkit.) The package...
204.8 KB  
Programming  -  Sybase::Metadata 3
Sybase::Metadata provides methods to extract and search through Sybase metadata, retrieving it for use in either general code or DB Browser applications. EXPORT NB: You MUST have DBI and DBD:Sybase insatlled to use this module!
10.24 KB  
Text Management  -  Yet Another Python Templating Utility (YAPTU) 1.5
"Templating" (copying an input file to output, on the fly inserting Python expressions and statements) is a frequent need, and YAPTU is a small but complete Python module for that; expressions and statements are identified by arbitrary user-chosen...
 
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB