{ "info": { "author": "Stephen Drake", "author_email": "steve@synergyconsultingnz.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "superprocess\n============\nSuperprocess facilitates extending the built-in subprocess module.\nYou can extend superprocess to add custom behaviour or use the bundled\nextensions, most notably support for running remote processes.\n\nInstallation\n------------\nRequires Python 2.6, 2.7 or 3.4+.\n\nTo install superprocess, simply::\n\n\t$ pip install superprocess\n\nUsage\n-----\nRun a remote command::\n\n\t>>> superprocess.check_output('echo $SSH_CONNECTION', netloc='127.0.0.1', shell=True)\n\tb'127.0.0.1 56924 127.0.0.1 22\\n'\n\nOpen a pipe to a command::\n\n\t>>> with superprocess.popen('ls') as f:\n\t... for line in f:\n\t... print(line.strip())\n\t...\n\tREADME.rst\n\tsetup.py\n\tsuperprocess\n\tsuperprocess.egg-info\n\nNote: close() will raise a CalledProcessError if the return code is non-zero::\n\n\t>>> f = superprocess.popen('echo Hello World!; exit 1', shell=True)\n\t>>> f.read()\n\t'Hello World!\\n'\n\t>>> f.close()\n\tTraceback (most recent call last):\n\t\t...\n\tsubprocess.CalledProcessError: Command 'echo Hello World!; exit 1' returned non-zero exit status 1\n\nCustomise an instance of superprocess to use the shell by default::\n\n\t>>> from superprocess import Superprocess\n\t>>> superprocess = Superprocess()\n\t>>> superprocess.run = functools.partial(superprocess.run, shell=True)\n\t>>> superprocess.call('exit 1')\n\t1\n\nLicense\n-------\nLicensed under the Apache License, Version 2.0.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/stevedrake/superprocess", "keywords": "subprocess ssh", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "superprocess", "package_url": "https://pypi.org/project/superprocess/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/superprocess/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/stevedrake/superprocess" }, "release_url": "https://pypi.org/project/superprocess/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "subprocess-like API for starting local and remote processes", "version": "0.2.0" }, "last_serial": 1692239, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a2fe7af927adf3a728f7f16afeb0cc09", "sha256": "0caab9a41f7af6a54a7384e973c32ba82601f8c8d3d8294348f9e1a8d9d9eb3a" }, "downloads": -1, "filename": "superprocess-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a2fe7af927adf3a728f7f16afeb0cc09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3881, "upload_time": "2015-03-31T11:32:20", "url": "https://files.pythonhosted.org/packages/68/d3/5b8fbeedc95025062010158f3c30eadc06581fb7a74fad5394bca0971f42/superprocess-0.1.0.tar.gz" } ], "0.1.0.dev": [ { "comment_text": "", "digests": { "md5": "92e812066fe039c36a2f797caac9c9f6", "sha256": "c8b746ee221394b42c4d1672bfddbd544bd44e10d6a01404eec8ceaffb1652a3" }, "downloads": -1, "filename": "superprocess-0.1.0.dev.tar.gz", "has_sig": false, "md5_digest": "92e812066fe039c36a2f797caac9c9f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2015-03-27T06:29:25", "url": "https://files.pythonhosted.org/packages/84/7b/8e6d5fa00803b7a46054a62d8b3b16702358eaaf232603506cd7d622d0d5/superprocess-0.1.0.dev.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6faf3971b8de46f4e686291cb3b37a4c", "sha256": "01a5eb5385adc56d51d9da41adfc8b374092815c67b433d193a06cc8c0f226d3" }, "downloads": -1, "filename": "superprocess-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6faf3971b8de46f4e686291cb3b37a4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3890, "upload_time": "2015-03-31T23:55:51", "url": "https://files.pythonhosted.org/packages/57/c7/0ac0ac1fc2239b7ae97125d4966b35873b0825c6068d21e3f24ff0c720f2/superprocess-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f942fe044dd9158bf0d264acde91cb32", "sha256": "a70012ffbedb0cacf3eacfc7024d04d0aedfc125dd07597cded9dfb52eadb0ba" }, "downloads": -1, "filename": "superprocess-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f942fe044dd9158bf0d264acde91cb32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5582, "upload_time": "2015-08-25T00:47:34", "url": "https://files.pythonhosted.org/packages/ac/ff/d719b162d210f73cfc7ea9cfe30f9816ee1b2c2a85b6e57d2661c4943fcb/superprocess-0.2.0.tar.gz" } ], "0.2.0.dev0": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "f942fe044dd9158bf0d264acde91cb32", "sha256": "a70012ffbedb0cacf3eacfc7024d04d0aedfc125dd07597cded9dfb52eadb0ba" }, "downloads": -1, "filename": "superprocess-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f942fe044dd9158bf0d264acde91cb32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5582, "upload_time": "2015-08-25T00:47:34", "url": "https://files.pythonhosted.org/packages/ac/ff/d719b162d210f73cfc7ea9cfe30f9816ee1b2c2a85b6e57d2661c4943fcb/superprocess-0.2.0.tar.gz" } ] }