debian/0000755000000000000000000000000011737121552007172 5ustar debian/watch0000644000000000000000000000011111737121552010214 0ustar version=3 http://pypi.python.org/packages/source/p/pyp/pyp-(.*)\.tar\.gz debian/rules0000755000000000000000000000015511737121552010253 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2 debian/control0000644000000000000000000000177411737121552010606 0ustar Source: pyp Section: utils Priority: extra Maintainer: Khalid El Fathi Build-Depends: debhelper (>= 9), python Standards-Version: 3.9.3.1 Homepage: http://code.google.com/p/pyp Vcs-Git: git://git.debian.org/collab-maint/pyp.git Vcs-Browser: http://git.debian.org/?p=collab-maint/pyp.git;a=summary Package: pyp Architecture: all Depends: ${misc:Depends}, ${python:Depends} Description: sed/awk-like tool with Python language pyp, the Pyed Piper, is a command line tool for text manipulation. It is similar to awk and sed in functionality, but its subcommands are Python based, and thus more familiar to many programmers. . It can operate both on a per-line base and on the complete input stream. Different features can be pipelined in a single command by using the pipe character familiar from shell commands. . pyp backs up its input for reruns with modified commands, and can save commands as macros. On the downside, the rerun feature makes it unsuitable for continuous pipe operation. debian/changelog0000644000000000000000000000022411737121552011042 0ustar pyp (2.12-1) unstable; urgency=low * Initial release (Closes: #664655) -- Khalid El Fathi Mon, 19 Mar 2012 19:37:09 +0100 debian/copyright0000644000000000000000000000475511737121552011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: pyp Upstream-Contact: Toby Rosen Source: http://code.google.com/p/pyp X-Upstream-Vcs: http://pyp.googlecode.com/svn/trunk X-Upstream-Bugs: http://code.google.com/p/pyp/issues/list X-Upstream-Forum: Files: * Copyright: © 2011 Sony Pictures Imageworks © 2011 Toby Rosen License: BSD-2-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: © 2012 Khalid El Fathi License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/pyp.10000644000000000000000000000532211737121552010066 0ustar .TH PYP 1 "March 19, 2012" .SH NAME pyp \- The Pyed Piper: A Modern Python Alternative to awk, sed and Other Unix Text Manipulation Utilities .SH SYNOPSIS .B pyp .RI [ options ] " files " ... .SH DESCRIPTION \fBpyp\fP, the Pyed Piper, is a command line tool for text manipulation. It is similar to awk and sed in functionality, but its subcommands are Python based, and thus more familiar to many programmers. .sp 1 It can operate both on a per-line base and on the complete input stream. Different features can be pipelined in a single command by using the pipe character familiar from shell commands. .sp 1 pyp backs up its input for reruns with modified commands, and can save commands as macros. On the downside, the rerun feature makes it unsuitable for continuous pipe operation. .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, use \-\-manual. .TP .B \-h, \-\-help Show this help message and exit. .TP .B \-m, \-\-manual Prints out extended help. .TP .B \-l, \-\-macro_list Lists all available macros. .TP .B \-s MACRO_SAVE_NAME, \-\-macro_save=MACRO_SAVE_NAME Saves current command as macro. use "#" for adding .br comments EXAMPLE: .br pyp \-s "great_macro # prints first letter" "p[1]". .TP .B \-f MACRO_FIND_NAME, \-\-macro_find=MACRO_FIND_NAME Searches for macros with keyword or user name. .TP .B \-d MACRO_DELETE_NAME, \-\-macro_delete=MACRO_DELETE_NAME Deletes specified public macro. .TP .B \-g, \-\-macro_group Specify group macros for save and delete; default is user. .TP .B \-t TEXT_FILE, \-\-text_file=TEXT_FILE Specify text file to load. For advanced users, .br you should typically cat a file into pyp. .TP .B \-x, \-\-execute Execute all commands. .TP .B \-c, \-\-turn_off_color Prints raw, uncolored output. .TP .B \-u, \-\-unmodified_config Prints out generic PypCustom.py config file. .TP .B \-b BLANK_INPUTS, \-\-blank_inputs=BLANK_INPUTS Generate this number of blank input lines; useful for .br generating numbered lists with variable 'n'. .TP .B \-n, \-\-no_input Use with command that generates output with no input; .br same as \-\-dummy_input 1. .TP .B \-k, \-\-keep_false Print blank lines for lines that test as False. .br default is to filter out False lines from the output. .TP .B \-r, \-\-rerun Rerun based on automatically cached data from the last run. .br Use this after executing "pyp", pasting input into the shell, .br and hitting CTRL-D. .SH SEE ALSO .BR awk (1), .BR grep (1), .BR sed (1). .br .SH AUTHOR pyp was written by Toby Rosen . .PP This manual page was written by Khalid El Fathi , for the Debian project (and may be used by others). debian/source/0000755000000000000000000000000011737121552010472 5ustar debian/source/format0000644000000000000000000000001411737121552011700 0ustar 3.0 (quilt) debian/pyp.manpages0000644000000000000000000000001511737121552011513 0ustar debian/pyp.1 debian/compat0000644000000000000000000000000211737121552010370 0ustar 9