{ "info": { "author": "Aneil Mallavarapu", "author_email": "aneil.mallavar@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "shellvars-py\n============\n\nRead environment variables defined in a shell script into Python. \nThis library uses the shell to get variable values, and handles \nmultiline variables.\n\n\n# Usage\n\nGiven a shell file: myvars.env:\n\n```shell\n#!/bin/bash\nexport VAR1=1\nexport VAR2=\"This\nis\na\nmultiline value\"\nexport VAR3=3\nNOT_EXPORTED=4\n```\n\n\n## get_vars\n\n```python\n>>> import shellvars \n>>> shellvars.get_vars('myvars.env')\n{'VAR1': '1', 'VAR2': 'This\\nis\\na\\nmultiline value', 'VAR3': '3' }\n```\n\n## list_vars\nLists the variable names in the script. \n```python\n>>> import shellvars \n>>> shellvars.list_vars('myvars.env')\n['VAR1', 'VAR2', 'VAR3']\n```\n\nThis is equivalent to, but faster than\n```python\n>>> shellvars.get_vars('myvars.env').keys()\n```", "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/aneilbaboo/shellvars-py", "keywords": null, "license": "Apache2", "maintainer": null, "maintainer_email": null, "name": "shellvars-py", "package_url": "https://pypi.org/project/shellvars-py/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/shellvars-py/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/aneilbaboo/shellvars-py" }, "release_url": "https://pypi.org/project/shellvars-py/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Read environment variables defined in a shell script into Python.", "version": "0.1.2" }, "last_serial": 1228363, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "fc13a032cc6dce2086b27f75817c42de", "sha256": "83e27d9684f5423ab33c6087eb51c5264244670bf1c9f38efd0e321dc3ea4aa5" }, "downloads": -1, "filename": "shellvars-py-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fc13a032cc6dce2086b27f75817c42de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2498, "upload_time": "2014-09-17T18:56:55", "url": "https://files.pythonhosted.org/packages/23/79/2642fcd04dbcce55c4ee5d57743a2970cf8e038d5cfc68bcaad6b9aa9734/shellvars-py-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "124af10e98d07c8edf7e6642315db359", "sha256": "7fd336804287c71e99fb9053e01d9200e745a1f06110fc50a27bd75f2da01a20" }, "downloads": -1, "filename": "shellvars-py-0.1.1.tar.gz", "has_sig": false, "md5_digest": "124af10e98d07c8edf7e6642315db359", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2509, "upload_time": "2014-09-17T19:26:53", "url": "https://files.pythonhosted.org/packages/88/6c/c12641118faef8c5c9d21911328b0891e6011ffcb8151ccd9df35f52996a/shellvars-py-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "da7db78f751dd5d9ed1fabd53c0d376a", "sha256": "81d81e188129ad571ade763fa484522302eb78806b0eece4ed11b8115a295729" }, "downloads": -1, "filename": "shellvars-py-0.1.2.tar.gz", "has_sig": false, "md5_digest": "da7db78f751dd5d9ed1fabd53c0d376a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2514, "upload_time": "2014-09-17T19:29:23", "url": "https://files.pythonhosted.org/packages/3a/37/5f72c2aea402cd2dd1bf05c1eeee4fd089e22c51d279e0579f65f36faf44/shellvars-py-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da7db78f751dd5d9ed1fabd53c0d376a", "sha256": "81d81e188129ad571ade763fa484522302eb78806b0eece4ed11b8115a295729" }, "downloads": -1, "filename": "shellvars-py-0.1.2.tar.gz", "has_sig": false, "md5_digest": "da7db78f751dd5d9ed1fabd53c0d376a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2514, "upload_time": "2014-09-17T19:29:23", "url": "https://files.pythonhosted.org/packages/3a/37/5f72c2aea402cd2dd1bf05c1eeee4fd089e22c51d279e0579f65f36faf44/shellvars-py-0.1.2.tar.gz" } ] }