Metadata-Version: 1.1
Name: shelljob
Version: 0.1.0
Summary: Run multiple subprocesses asynchronous/in parallel with streamed output/non-blocking reading
Home-page: https://pypi.python.org/pypi/shelljob
Author: edA-qa mort-ora-y
Author-email: eda-qa@disemia.com
License: UNKNOWN
Description: shelljob
        ========
        
        A simple way to manage several parallel subprocesses. This provides for
        asynchronous processes and non-blocking reading of their output.
        
        Using the Job system is the quickest approach to just run processes and
        log their output (by default in files named '/tmp/job\_ID.log')
        
        ::
        
            from shelljob import job
        
            jm = job.FileMonitor()
            jm.run([
                [ 'ls', '-alR', '/usr/local' ],
                [ 'my_prog' ],
                [ 'build', 'output', 'input' ],
            ])
        
        Note the command items are lists passed directly to
        ``subprocess.Popen``.
        
        The lower level ``Group`` class provides a simple container for more
        manual job management.
        
        ::
        
            from shelljob import proc
        
            g = proc.Group()
            p1 = g.run( [ 'ls', '-al', '/usr/local' ] )
            p2 = g.run( [ 'program', 'arg1', 'arg2' ] )
        
            while g.is_pending():
                lines = g.readlines()
                for proc, line in lines:
                    sys.stdout.write( "{}:{}".format( proc.pid, line ) )
        
        You can use my `Launchpad
        project <https://bugs.launchpad.net/mortoray.com>`_ to submit issues.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Terminals
Classifier: Topic :: System
Classifier: Topic :: Software Development :: Build Tools
