Metadata-Version: 1.1
Name: oneliner
Version: 0.2.0
Summary: practical python one-liners
Home-page: https://github.com/gvalkov/python-oneliner
Author: Georgi Valkov
Author-email: georgi.t.valkov@gmail.com
License: Revised BSD License
Description: *oneliner*
        ----------
        
        This module tries to improve Python's usefulness as a tool for writing
        shell one-liners.
        
        .. code-block:: bash
        
            # show line numbers
            python -m oneliner -ne "%5d: %s" % (NR, _) < input
        
            # convert unix timestamp to something more human readable
            date +%s | pyl -j ' => ' -line '_, datetime.datetime.fromtimestamp(int(_))'
            # 1355256353 => 2012-12-11 22:05:53
        
            # triple space a file
            pyl -ne 'line + "\n"*2' < input
        
            # double space only non-blank lines:
            pyl -ne '_ if re.match("^$", _) else _+"\n"'
        
        Documentation:
            http://python-oneliner.readthedocs.org/en/latest/
        
        Development:
            https://github.com/gvalkov/python-oneliner
        
        Package:
            http://pypi.python.org/pypi/oneliner
        
Keywords: oneliner one-liner
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: License :: OSI Approved :: BSD License
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
