Metadata-Version: 2.1
Name: runcmd
Version: 0.0.1
Summary: run command
Home-page: https://github.com/looking-for-a-job/runcmd.py
License: UNKNOWN
Description: ### Install
        
        ```bash
        $ [sudo] pip install runcmd
        ```
        
        ### Features
        
        +   minimalist design
        +   easy debug
        
        ### Examples
        
        
        ```python
        >> > import runcmd
        >> > r = runcmd.run(["echo", "hello world"])
        
        >> > r.code, r.out, r.err
        (0, 'hello world', '')
        ```
        
        `_raise()` - raise exception if code is not `0`
        ```python
        >> > runcmd.run(["ls"])._raise()             # code 0, ok
        >> > runcmd.run(["mkdir", "/"])._raise()      # code 1, error
        ...
        OSError: exited with code 1
        mkdir: /: Is a directory
        ```
        
        `ok` - `True` if code is `0`
        ```python
        >> > if r.ok:
        ```
        
        ### Sources
        
        +   [`runcmd.Command`](https://github.com/looking-for-a-job/runcmd.py/blob/master/runcmd/__init__.py)
        +   [`runcmd.Response`](https://github.com/looking-for-a-job/runcmd.py/blob/master/runcmd/__init__.py)
        +   [`runcmd.run(args, cwd=None, env=None)`](https://github.com/looking-for-a-job/runcmd.py/blob/master/runcmd/__init__.py)
Keywords: run command
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development
Description-Content-Type: text/markdown
