{ "info": { "author": "mozillazg", "author_email": "mozillazg101@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Utilities" ], "description": "python-shellwords\n==================\n\n|Build| |Coverage| |PyPI version|\n\nParse line as shell words.\n\n\n* GitHub: https://github.com/mozillazg/python-shellwords\n* License: MIT license\n* PyPI: https://pypi.python.org/pypi/shellwords\n* Python version: 2.6, 2.7, pypy, 3.3, 3.4\n\nUsage\n-------\n\n\n.. code-block:: python\n\n >>> from shellwords import ShellWords\n >>> s = ShellWords()\n >>> s.parse(\"./foo --bar=baz\")\n [u'./foo', u'--bar=baz']\n >>> s.parse('./foo --bar=baz foobar')\n [u'./foo', u'--bar=baz', u'foobar']\n\n\n.. code-block:: python\n\n >>> os.environ['FOO'] = 'bar'\n >>> s = ShellWords(parse_env=True)\n >>> s.parse(\"./foo $FOO\")\n [u'./foo', u'bar']\n\n.. code-block:: python\n\n >>> s = ShellWords(parse_backtick=True)\n >>> s.parse(\"./foo `echo $SHELL`\")\n [u'./foo', u'/bin/bash']\n\n\nThanks\n-------\n\nThis is based on `go-shellwords`__ package.\n\n__ https://github.com/mattn/go-shellwords\n\n\n.. |Build| image:: https://api.travis-ci.org/mozillazg/python-shellwords.png?branch=master\n :target: https://travis-ci.org/mozillazg/python-shellwords\n.. |Coverage| image:: https://coveralls.io/repos/mozillazg/python-shellwords/badge.png?branch=master\n :target: https://coveralls.io/r/mozillazg/python-shellwords\n.. |PyPI version| image:: https://pypip.in/version/shellwords/badge.png\n :target: https://pypi.python.org/pypi/shellwords\n.. |PyPI downloads| image:: https://pypip.in/download/shellwords/badge.png\n :target: https://pypi.python.org/pypi/shellwords\n.. |Python versions| image:: https://pypip.in/py_versions/shellwords/badge.svg\n :target: https://pypi.python.org/pypi/shellwords\n\n\nChangelog\n--------------\n\n0.1.0 (2015-01-29)\n~~~~~~~~~~~~~~~~~~~~\n* Initial Release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mozillazg/python-shellwords", "keywords": "shell,shellwords", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "shellwords", "package_url": "https://pypi.org/project/shellwords/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/shellwords/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mozillazg/python-shellwords" }, "release_url": "https://pypi.org/project/shellwords/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Parse line as shell words.", "version": "0.1.0" }, "last_serial": 1402708, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "922fac43197c9f3763f9189663e65745", "sha256": "18ca58eccc16de3540e2889f9badd67d92a6edced64ffb760cfd12ccca598bef" }, "downloads": -1, "filename": "shellwords-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "922fac43197c9f3763f9189663e65745", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4324, "upload_time": "2015-01-29T09:17:33", "url": "https://files.pythonhosted.org/packages/ca/f7/56e15b30d1dd33488ffed1ba7c0cdaf38089eae06f38e0c8920a0d45f1db/shellwords-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1135f64a1b661adb58add7ede1623c69", "sha256": "7dac53f0cfe779f4dbfdd86b1ea6ac924a7588b56123ae1f9eda7a5686fa3576" }, "downloads": -1, "filename": "shellwords-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1135f64a1b661adb58add7ede1623c69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3742, "upload_time": "2015-01-29T09:17:30", "url": "https://files.pythonhosted.org/packages/ea/f8/cd4ce7a8207cdc5bb9c40ee0bde4ed270887de584006535e44856ef4efc5/shellwords-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "922fac43197c9f3763f9189663e65745", "sha256": "18ca58eccc16de3540e2889f9badd67d92a6edced64ffb760cfd12ccca598bef" }, "downloads": -1, "filename": "shellwords-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "922fac43197c9f3763f9189663e65745", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4324, "upload_time": "2015-01-29T09:17:33", "url": "https://files.pythonhosted.org/packages/ca/f7/56e15b30d1dd33488ffed1ba7c0cdaf38089eae06f38e0c8920a0d45f1db/shellwords-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1135f64a1b661adb58add7ede1623c69", "sha256": "7dac53f0cfe779f4dbfdd86b1ea6ac924a7588b56123ae1f9eda7a5686fa3576" }, "downloads": -1, "filename": "shellwords-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1135f64a1b661adb58add7ede1623c69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3742, "upload_time": "2015-01-29T09:17:30", "url": "https://files.pythonhosted.org/packages/ea/f8/cd4ce7a8207cdc5bb9c40ee0bde4ed270887de584006535e44856ef4efc5/shellwords-0.1.0.tar.gz" } ] }