{ "info": { "author": "Matt Dodge", "author_email": "mattedgod@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "

\n\nWrite and test your shell scripts using Python\n

\n
\nShell scripts are great - they run on most *nix machines, they allow you interact with the file system easily, and they are light weight and don't require a massive runtime. However, the syntax is error prone and they are difficult to manage and test. Shellshock lets you write and test your shell scripts using the Python syntax and test cases you already know and love.\n\n## Installation\n\nWriting with Shellshock requires Python. The shell scripts it outputs do not require Python to run though.\n```bash\npip install shellshock\n```\n\n## Usage\nTo convert a Python shellshock script to a regular shell script:\n```bash\nshellshock my_script.py -o my_script.sh\n```\n\n## Starting with an existing shell script\nLet's say you have an existing shell script you want to convert that looks like this:\n\n**oldscript.sh**\n```bash\nif [ -f \"file\" ]; then\n echo \"ok\"\nfi\n```\n\nYou can easily make this a shellshock script using the `ss.shell` method and a multiline string at the top of the file:\n\n**oldscript.py**\n```python\nimport shellshock as ss\nss.shell(\"\"\"\nif [ -f \"file\" ]; then\n echo \"ok\"\nfi\n\"\"\")\n```\n\nThen you could convert it to full Python shellscript syntax like so:\n\n**newscript.py**\n```python\nimport shellshock as ss\nif ss.isfile(\"file\"):\n print(\"ok\")\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mattdodge/shellshock", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "shellshock", "package_url": "https://pypi.org/project/shellshock/", "platform": "", "project_url": "https://pypi.org/project/shellshock/", "project_urls": { "Homepage": "https://github.com/mattdodge/shellshock" }, "release_url": "https://pypi.org/project/shellshock/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Write your shell scripts using Python", "version": "0.0.1" }, "last_serial": 4728986, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "411ed775087543aa91a1e1f09ffef4d9", "sha256": "076961280910937f34ac49077be8018c58af6664e97ba643ccc9e8add9526296" }, "downloads": -1, "filename": "shellshock-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "411ed775087543aa91a1e1f09ffef4d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 41516, "upload_time": "2019-01-23T04:54:18", "url": "https://files.pythonhosted.org/packages/d5/cc/873d3b446426c419eba7285d48bd43538882e41b45e04b7435469b189ed8/shellshock-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e1ad45713f20fb2c10ae1d90dc77a90", "sha256": "6eaea358bddc45b697213bf076a722af99aafe8a4233d041f856333e45fe55a4" }, "downloads": -1, "filename": "shellshock-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0e1ad45713f20fb2c10ae1d90dc77a90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11432, "upload_time": "2019-01-23T04:54:20", "url": "https://files.pythonhosted.org/packages/46/cd/510a30af9ece158c658c40ec25c020457dcda124171fb2788c15b09e1c30/shellshock-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "411ed775087543aa91a1e1f09ffef4d9", "sha256": "076961280910937f34ac49077be8018c58af6664e97ba643ccc9e8add9526296" }, "downloads": -1, "filename": "shellshock-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "411ed775087543aa91a1e1f09ffef4d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 41516, "upload_time": "2019-01-23T04:54:18", "url": "https://files.pythonhosted.org/packages/d5/cc/873d3b446426c419eba7285d48bd43538882e41b45e04b7435469b189ed8/shellshock-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e1ad45713f20fb2c10ae1d90dc77a90", "sha256": "6eaea358bddc45b697213bf076a722af99aafe8a4233d041f856333e45fe55a4" }, "downloads": -1, "filename": "shellshock-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0e1ad45713f20fb2c10ae1d90dc77a90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11432, "upload_time": "2019-01-23T04:54:20", "url": "https://files.pythonhosted.org/packages/46/cd/510a30af9ece158c658c40ec25c020457dcda124171fb2788c15b09e1c30/shellshock-0.0.1.tar.gz" } ] }