{ "info": { "author": "Mars Galactic", "author_email": "xoviat@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "cmdvars\n=======\n\n| Read environment variables defined in a shell script into Python.\n| This library uses the shell to get variable values, and handles\n multiline variables.\n\nUsage\n=====\n\nGiven a shell file: myvars.env:\n\n.. code:: shell\n\n #!/bin/bash\n export VAR1=1\n export VAR2=\"This\n is\n a\n multiline value\"\n export VAR3=3\n NOT_EXPORTED=4\n\nget\\_vars\n---------\n\n.. code:: python\n\n >>> import shellvars \n >>> shellvars.get_vars('myvars.env')\n {'VAR1': '1', 'VAR2': 'This\\nis\\na\\nmultiline value', 'VAR3': '3' }\n\nlist\\_vars\n----------\n\nLists the variable names in the script.\n\n.. code:: python\n\n >>> import shellvars \n >>> shellvars.list_vars('myvars.env')\n ['VAR1', 'VAR2', 'VAR3']\n\nThis is equivalent to, but faster than\n\n.. code:: python\n\n >>> shellvars.get_vars('myvars.env').keys()\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/xoviat/cmdvars", "keywords": "", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "cmdvars", "package_url": "https://pypi.org/project/cmdvars/", "platform": "", "project_url": "https://pypi.org/project/cmdvars/", "project_urls": { "Homepage": "http://github.com/xoviat/cmdvars" }, "release_url": "https://pypi.org/project/cmdvars/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Read environment variables defined in a shell script into Python.", "version": "0.1.3" }, "last_serial": 3646404, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "544aae86b28c497d3e4e542d00d94448", "sha256": "99f1da66c5d1beae73b933f841d95fc59cb78884a4e14f5fdec4f03bdc6c5be9" }, "downloads": -1, "filename": "cmdvars-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "544aae86b28c497d3e4e542d00d94448", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5002, "upload_time": "2017-01-25T15:28:11", "url": "https://files.pythonhosted.org/packages/c4/62/947f816007282854f69b6a5cd000bfc1edd29957dadc43fbd23591d305fd/cmdvars-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f93aa658df394cd938393f4718285bdc", "sha256": "97a14000d66eccf51c30fefa6241eadae825390d5f4d4420f0ada1a5a429e5b1" }, "downloads": -1, "filename": "cmdvars-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f93aa658df394cd938393f4718285bdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19002, "upload_time": "2017-01-25T15:28:13", "url": "https://files.pythonhosted.org/packages/84/c0/ff5d9364e11d46c10e67bcde69ab1918ab09cea5c1c2480936bdd7d1e39c/cmdvars-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "544aae86b28c497d3e4e542d00d94448", "sha256": "99f1da66c5d1beae73b933f841d95fc59cb78884a4e14f5fdec4f03bdc6c5be9" }, "downloads": -1, "filename": "cmdvars-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "544aae86b28c497d3e4e542d00d94448", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5002, "upload_time": "2017-01-25T15:28:11", "url": "https://files.pythonhosted.org/packages/c4/62/947f816007282854f69b6a5cd000bfc1edd29957dadc43fbd23591d305fd/cmdvars-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f93aa658df394cd938393f4718285bdc", "sha256": "97a14000d66eccf51c30fefa6241eadae825390d5f4d4420f0ada1a5a429e5b1" }, "downloads": -1, "filename": "cmdvars-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f93aa658df394cd938393f4718285bdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19002, "upload_time": "2017-01-25T15:28:13", "url": "https://files.pythonhosted.org/packages/84/c0/ff5d9364e11d46c10e67bcde69ab1918ab09cea5c1c2480936bdd7d1e39c/cmdvars-0.1.3.tar.gz" } ] }