{ "info": { "author": "Sven Ludwig", "author_email": "pypi@abraumhal.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Natural Language :: German", "Operating System :: POSIX", "Programming Language :: Basic", "Programming Language :: Python :: 2.7", "Topic :: System :: Boot :: Init" ], "description": "etcDefault\r\n==========\r\n \r\nA parser for /etc/default configuration files which parses these files with a\r\nbash subshell in order to have 100% of the bash features when including this\r\nconfiguration into an python driven init script.\r\n \r\nExample\r\n-------\r\n\r\n root@host # cat /etc/default/rcS\r\n #\r\n # /etc/default/rcS\r\n #\r\n # Default settings for the scripts in /etc/rcS.d/\r\n #\r\n # For information about these variables see the rcS(5) manual page.\r\n #\r\n # This file belongs to the \"initscripts\" package.\r\n \r\n TMPTIME=0\r\n SULOGIN=no\r\n DELAYLOGIN=no\r\n UTC=yes\r\n VERBOSE=no\r\n FSCKFIX=no\r\n RAMRUN=no\r\n RAMLOCK=no\r\n root@host # python\r\n Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)\r\n [GCC 4.4.5] on linux2\r\n Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n >>> import etcDefault\r\n >>> etcDefault.read('/etc/default/rcS')\r\n {\r\n 'UTC': 'yes',\r\n 'RAMLOCK': 'no',\r\n 'SULOGIN': 'no',\r\n 'VERBOSE': 'no',\r\n 'TMPTIME': '0',\r\n 'RAMRUN': 'no',\r\n 'FSCKFIX': 'no',\r\n 'DELAYLOGIN': 'no',\r\n 'PIPESTATUS': ['0']\r\n }\r\n >>>\r\n \r\nYou get all variables set during the run of the /etc/default script into a dict.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/etcDefaultParser", "keywords": "initscript default debian", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "etcDefaultParser", "package_url": "https://pypi.org/project/etcDefaultParser/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/etcDefaultParser/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/etcDefaultParser" }, "release_url": "https://pypi.org/project/etcDefaultParser/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A parser for /etc/default configuration files", "version": "1.0.0" }, "last_serial": 791725, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f0ab3e03947588f6e94b70ddf46b01a1", "sha256": "796d3bd2dec0c7745577f8bb9a71eafc47c2fec3c2f75c57f599d00a108fa77d" }, "downloads": -1, "filename": "etcDefaultParser-1.0.0-py2.6.egg", "has_sig": false, "md5_digest": "f0ab3e03947588f6e94b70ddf46b01a1", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 9249, "upload_time": "2012-06-27T23:24:30", "url": "https://files.pythonhosted.org/packages/20/21/c67ef9b7edac3ceb90c9615bfb4096bd21666c698377c434db73c11b66fc/etcDefaultParser-1.0.0-py2.6.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f0ab3e03947588f6e94b70ddf46b01a1", "sha256": "796d3bd2dec0c7745577f8bb9a71eafc47c2fec3c2f75c57f599d00a108fa77d" }, "downloads": -1, "filename": "etcDefaultParser-1.0.0-py2.6.egg", "has_sig": false, "md5_digest": "f0ab3e03947588f6e94b70ddf46b01a1", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 9249, "upload_time": "2012-06-27T23:24:30", "url": "https://files.pythonhosted.org/packages/20/21/c67ef9b7edac3ceb90c9615bfb4096bd21666c698377c434db73c11b66fc/etcDefaultParser-1.0.0-py2.6.egg" } ] }