{ "info": { "author": "Daniel Lindsley", "author_email": "daniel@toastdriven.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: System :: Shells" ], "description": "=====\nshell\n=====\n\n\"\"\"A better way to run shell commands in Python.\"\"\"\n\nBuilt because every time I go to use `subprocess`_, I spend more time in the\ndocs & futzing around than actually implementing what I'm trying to get done.\n\n.. _`subprocess`: http://docs.python.org/2.7/library/subprocess.html\n\nFull docs are at https://shell.readthedocs.org/en/latest/.\n\n\nRequirements\n============\n\n* Python 2.6+ or Python 3.3+\n\n\nUsage\n=====\n\nIf you just need to quickly run a command, you can use the ``shell`` shortcut\nfunction::\n\n >>> from shell import shell\n >>> ls = shell('ls')\n >>> for file in ls.output():\n ... print file\n 'another.txt'\n\nIf you need to extend the behavior, you can also use the ``Shell`` object::\n\n >>> from shell import Shell\n >>> sh = Shell(has_input=True)\n >>> cat = sh.run('cat -u')\n >>> cat.write('Hello, world!')\n >>> cat.output()\n ['Hello, world!']\n\nYou can even chain calls if you'd like::\n\n >>> from shell import shell\n >>> shell('cat -u', has_input=True).write('Hello, world!').output()\n ['Hello, world!']\n\n\nInstallation\n============\n\nUsing ``pip``, simply run::\n\n pip install shell\n\n\nLicense\n=======\n\nNew BSD", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/toastdriven/shell", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "shell", "package_url": "https://pypi.org/project/shell/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/shell/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/toastdriven/shell" }, "release_url": "https://pypi.org/project/shell/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "A better way to run shell commands in Python.", "version": "1.0.1" }, "last_serial": 934513, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b3e4e0da2c56c839b06f951cbb60eba6", "sha256": "1330b1cc5063d02f004fd707169b1aba036606258b2b125fdfb651b7db9e7b35" }, "downloads": -1, "filename": "shell-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b3e4e0da2c56c839b06f951cbb60eba6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4451, "upload_time": "2013-06-02T21:37:05", "url": "https://files.pythonhosted.org/packages/2a/ce/f520c2b7b2b0a494739b48a1c10c0ddde20ab6a3b12716da6db30361a297/shell-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "95bac7901f7a9646a1a39e1b413345aa", "sha256": "64e3347d1dd2c8f3c3f3df5e6ebe9084d768ae20985aef6793854b9f47d4045a" }, "downloads": -1, "filename": "shell-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95bac7901f7a9646a1a39e1b413345aa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5389, "upload_time": "2013-12-03T09:57:25", "url": "https://files.pythonhosted.org/packages/c1/19/5fc161e830b08bf2b419a04b0105f2dbf095759148d38cd1e99feadc4146/shell-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ca7b2c85eb443c907668c8870876e0a6", "sha256": "6fbaa88f85de228ddecef33cb1e9037f4959f6f76942b01769e4139a038f6513" }, "downloads": -1, "filename": "shell-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ca7b2c85eb443c907668c8870876e0a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4486, "upload_time": "2013-06-03T19:25:53", "url": "https://files.pythonhosted.org/packages/71/0c/d6270ed3bf86d036c37929443d7f4a7a8af77dbbce11cec7ddce8d8599c5/shell-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95bac7901f7a9646a1a39e1b413345aa", "sha256": "64e3347d1dd2c8f3c3f3df5e6ebe9084d768ae20985aef6793854b9f47d4045a" }, "downloads": -1, "filename": "shell-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "95bac7901f7a9646a1a39e1b413345aa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5389, "upload_time": "2013-12-03T09:57:25", "url": "https://files.pythonhosted.org/packages/c1/19/5fc161e830b08bf2b419a04b0105f2dbf095759148d38cd1e99feadc4146/shell-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ca7b2c85eb443c907668c8870876e0a6", "sha256": "6fbaa88f85de228ddecef33cb1e9037f4959f6f76942b01769e4139a038f6513" }, "downloads": -1, "filename": "shell-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ca7b2c85eb443c907668c8870876e0a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4486, "upload_time": "2013-06-03T19:25:53", "url": "https://files.pythonhosted.org/packages/71/0c/d6270ed3bf86d036c37929443d7f4a7a8af77dbbce11cec7ddce8d8599c5/shell-1.0.1.tar.gz" } ] }