{ "info": { "author": "George Vlahavas", "author_email": "vlahavas@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "# TextConfig\n\nTextConfig is a Class for managing simple text configuration files with\npython. By simple, it means that they are simple text files, there are\nno sections and all options in the configuration files use a strict\n\n```\nOPTION=value\n```\n\nformat, with no spaces between `OPTION`, `=` and `value`.\nThe same `OPTION` can be used more than once, so you can have multiple\nvalues, for example:\n\n```\nEXAMPLE=one\nEXAMPLE=two\n```\n\nHere's a real-world example of such a file, taken from the `slapt-get` package\nmanager repository configuration file in Salix:\n\n```\n# Working directory for local storage/cache.\nWORKINGDIR=/var/slapt-get\n\n# Exclude package names and expressions.\n# To exclude pre and beta packages, add this to the exclude:\n# [0-9\\_\\.\\-]{1}pre[0-9\\-\\.\\-]{1}\nEXCLUDE=^aaa_elflibs,^aaa_base,^devs,^glibc.*,^kernel-.*,^rootuser-settings,^zzz-settings.*,-i?86-\n\n# The Slackware repositories, including dependency information\nSOURCE=http://www.mirrorservice.org/sites/download.salixos.org/x86_64/slackware-14.2/:OFFICIAL\nSOURCE=http://www.mirrorservice.org/sites/download.salixos.org/x86_64/slackware-14.2/extra/:OFFICIAL\n\n# The Salix repository\nSOURCE=http://www.mirrorservice.org/sites/download.salixos.org/x86_64/14.2/:PREFERRED\n# And the Salix extra repository\nSOURCE=http://www.mirrorservice.org/sites/download.salixos.org/x86_64/extra-14.2/:OFFICIAL\n```\n\nYou may call it like this:\n\n```\nfrom textconfig import TextConfig\nc = TextConfig('/path/to/configfile')\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/gapan/textconfig", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "textconfig", "package_url": "https://pypi.org/project/textconfig/", "platform": "Platform Independent", "project_url": "https://pypi.org/project/textconfig/", "project_urls": { "Homepage": "https://github.com/gapan/textconfig" }, "release_url": "https://pypi.org/project/textconfig/0.1/", "requires_dist": null, "requires_python": "", "summary": "Simple text configuration file reading/writing", "version": "0.1" }, "last_serial": 5743297, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "289d1f839c0bf3cf9d4f3140753f5807", "sha256": "ad5568911d070948a8b3ce2ffd360d6ca8fb4c1b7b7514309fc1c31df5ca5a54" }, "downloads": -1, "filename": "textconfig-0.1.tar.gz", "has_sig": false, "md5_digest": "289d1f839c0bf3cf9d4f3140753f5807", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15566, "upload_time": "2019-08-28T15:22:29", "url": "https://files.pythonhosted.org/packages/b9/a6/5bdd32fbe0f2c4cae6e7c3d542b18d147abfe556bfc961b75eb4c8630e1f/textconfig-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "289d1f839c0bf3cf9d4f3140753f5807", "sha256": "ad5568911d070948a8b3ce2ffd360d6ca8fb4c1b7b7514309fc1c31df5ca5a54" }, "downloads": -1, "filename": "textconfig-0.1.tar.gz", "has_sig": false, "md5_digest": "289d1f839c0bf3cf9d4f3140753f5807", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15566, "upload_time": "2019-08-28T15:22:29", "url": "https://files.pythonhosted.org/packages/b9/a6/5bdd32fbe0f2c4cae6e7c3d542b18d147abfe556bfc961b75eb4c8630e1f/textconfig-0.1.tar.gz" } ] }