envoy


Nameenvoy JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/kennethreitz/envoy
SummarySimple API for running external processes.
upload_time2014-08-13 14:53:10
maintainerNone
docs_urlNone
authorKenneth Reitz
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Envoy: Python Subprocesses for Humans.
======================================

**Note:** Work in progress.

This is a convenience wrapper around the `subprocess` module.

You don't need this.

.. image:: https://github.com/kennethreitz/envoy/raw/master/ext/in_action.png

But you want it.


Usage
-----

Run a command, get the response::

    >>> r = envoy.run('git config', data='data to pipe in', timeout=2)

    >>> r.status_code
    129
    >>> r.std_out
    'usage: git config [options]'
    >>> r.std_err
    ''

Pipe stuff around too::

    >>> r = envoy.run('uptime | pbcopy')

    >>> r.command
    'pbcopy'
    >>> r.status_code
    0

    >>> r.history
    [<Response 'uptime'>]
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kennethreitz/envoy",
    "name": "envoy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Kenneth Reitz",
    "author_email": "me@kennethreitz.com",
    "download_url": "https://files.pythonhosted.org/packages/35/01/55819eb9761339b65be3bda906110a3c7c0e9114374cce12a399c5992fc5/envoy-0.0.3.tar.gz",
    "platform": "UNKNOWN",
    "description": "Envoy: Python Subprocesses for Humans.\n======================================\n\n**Note:** Work in progress.\n\nThis is a convenience wrapper around the `subprocess` module.\n\nYou don't need this.\n\n.. image:: https://github.com/kennethreitz/envoy/raw/master/ext/in_action.png\n\nBut you want it.\n\n\nUsage\n-----\n\nRun a command, get the response::\n\n    >>> r = envoy.run('git config', data='data to pipe in', timeout=2)\n\n    >>> r.status_code\n    129\n    >>> r.std_out\n    'usage: git config [options]'\n    >>> r.std_err\n    ''\n\nPipe stuff around too::\n\n    >>> r = envoy.run('uptime | pbcopy')\n\n    >>> r.command\n    'pbcopy'\n    >>> r.status_code\n    0\n\n    >>> r.history\n    [<Response 'uptime'>]",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple API for running external processes.",
    "version": "0.0.3",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "https://github.com/kennethreitz/envoy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3671b6ca37dd6bfe6ec851ee385e824fd4e459f2744caa2b8e7533555dcdeb8b",
                "md5": "d4ea7533bdea3edcde1b441ac34e1f50",
                "sha256": "789d274f8bc00401848678c0ee18199c1a57901749ed6b1a03a3ea53ec72ceef"
            },
            "downloads": -1,
            "filename": "envoy-0.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d4ea7533bdea3edcde1b441ac34e1f50",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 4977,
            "upload_time": "2014-08-13T15:00:16",
            "upload_time_iso_8601": "2014-08-13T15:00:16.711752Z",
            "url": "https://files.pythonhosted.org/packages/36/71/b6ca37dd6bfe6ec851ee385e824fd4e459f2744caa2b8e7533555dcdeb8b/envoy-0.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "350155819eb9761339b65be3bda906110a3c7c0e9114374cce12a399c5992fc5",
                "md5": "548cc52576b6d73fa886439e3100d576",
                "sha256": "22b02009cfda2cf2cdb94a75a15ac3fd910aea8685c53e8e03715c7e9d8e8bde"
            },
            "downloads": -1,
            "filename": "envoy-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "548cc52576b6d73fa886439e3100d576",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4190,
            "upload_time": "2014-08-13T14:53:10",
            "upload_time_iso_8601": "2014-08-13T14:53:10.062571Z",
            "url": "https://files.pythonhosted.org/packages/35/01/55819eb9761339b65be3bda906110a3c7c0e9114374cce12a399c5992fc5/envoy-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2014-08-13 14:53:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kennethreitz",
    "github_project": "envoy",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "envoy"
}
        
Elapsed time: 0.36439s