{"id":15558604,"url":"https://github.com/mozillazg/python-shellwords","last_synced_at":"2025-06-26T03:04:52.297Z","repository":{"id":25892340,"uuid":"29332843","full_name":"mozillazg/python-shellwords","owner":"mozillazg","description":"Parse line as shell words","archived":false,"fork":false,"pushed_at":"2018-03-04T22:03:22.000Z","size":348,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T18:09:08.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozillazg.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-16T04:36:06.000Z","updated_at":"2022-05-08T15:01:16.000Z","dependencies_parsed_at":"2022-08-24T06:20:56.363Z","dependency_job_id":null,"html_url":"https://github.com/mozillazg/python-shellwords","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mozillazg/python-shellwords","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fpython-shellwords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fpython-shellwords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fpython-shellwords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fpython-shellwords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozillazg","download_url":"https://codeload.github.com/mozillazg/python-shellwords/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozillazg%2Fpython-shellwords/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990349,"owners_count":23241188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T15:39:55.219Z","updated_at":"2025-06-26T03:04:52.252Z","avatar_url":"https://github.com/mozillazg.png","language":"Python","readme":"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    \u003e\u003e\u003e from shellwords import ShellWords\n    \u003e\u003e\u003e s = ShellWords()\n    \u003e\u003e\u003e s.parse(\"./foo --bar=baz\")\n    [u'./foo', u'--bar=baz']\n    \u003e\u003e\u003e s.parse('./foo --bar=baz foobar')\n    [u'./foo', u'--bar=baz', u'foobar']\n\n\n.. code-block:: python\n\n    \u003e\u003e\u003e os.environ['FOO'] = 'bar'\n    \u003e\u003e\u003e s = ShellWords(parse_env=True)\n    \u003e\u003e\u003e s.parse(\"./foo $FOO\")\n    [u'./foo', u'bar']\n\n.. code-block:: python\n\n    \u003e\u003e\u003e s = ShellWords(parse_backtick=True)\n    \u003e\u003e\u003e 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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozillazg%2Fpython-shellwords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozillazg%2Fpython-shellwords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozillazg%2Fpython-shellwords/lists"}