{ "info": { "author": "Jason Simeone", "author_email": "jay@classless.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==========\nsetoptconf\n==========\n\n.. image:: https://travis-ci.org/jayclassless/setoptconf.svg?branch=master\n :target: https://travis-ci.org/jayclassless/setoptconf\n\n``setoptconf`` is a Python library that can be used to retrieve program settings\nfrom a variety of common sources:\n\n* Command Line\n* Environment Variables\n* INI Files\n* JSON Files\n* YAML Files\n* Python Objects/Modules\n\nThe goal of this project is to define your desired settings in a simple and\nconsistent way, and then point setoptconf at as many of the sources as you'd\nlike to use, and let it comb them all, looking for your settings.\n\nThis README is admittedly very light on details. Full documentation will come\nin time. For now, here's an example of its use:\n\nImport the library::\n\n import setoptconf as soc\n\nInstantiate the manager::\n\n manager = soc.ConfigurationManager('myprogram')\n\nDefine the settings we'd like to collect::\n\n manager.add(soc.StringSetting('foo'))\n manager.add(soc.IntegerSetting('bar', required=True))\n manager.add(soc.BooleanSetting('baz', default=True))\n\nRetreive the settings from our desired sources, combining the settings and\noverriding with the priority implied by the order of the sources we pass::\n\n config = manager.retrieve(\n # This source pulls from the command line using argparse.\n soc.CommandLineSource,\n\n # This source pulls from environment variables that are prefixed\n # with MYPROGRAM_*\n soc.EnvironmentVariableSource,\n\n # This source pulls from the named INI files. It stops at the first\n # file it finds.\n soc.ConfigFileSource(('.myprogramrc', '/etc/myprogram.conf')),\n )\n\nWe now have a Configuration object named ``config`` that has three attributes;\n``foo``, ``bar``, and ``baz``.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jayclassless/setoptconf", "keywords": "settings,options,configuration,config,arguments", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "setoptconf", "package_url": "https://pypi.org/project/setoptconf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/setoptconf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jayclassless/setoptconf" }, "release_url": "https://pypi.org/project/setoptconf/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "A module for retrieving program settings from various sources in a consistant method.", "version": "0.2.0" }, "last_serial": 1038094, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0f3554c876748a0bd68aae43695145d0", "sha256": "4f3c550da5399529053e7a90f669717f469db0597e6ebb3aeb2079fdf0a00560" }, "downloads": -1, "filename": "setoptconf-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0f3554c876748a0bd68aae43695145d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12439, "upload_time": "2014-02-09T19:39:42", "url": "https://files.pythonhosted.org/packages/ae/2d/9fc304dbcc9fb60cca4800c6cd5a26a47c2895d10ebbe47eba959a8a019b/setoptconf-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3ce56730d8ff700af85bda35963ab7fa", "sha256": "5b0b5d8e0077713f5d5152d4f63be6f048d9a1bb66be15d089a11c898c3cf49c" }, "downloads": -1, "filename": "setoptconf-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3ce56730d8ff700af85bda35963ab7fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13200, "upload_time": "2014-03-22T20:54:25", "url": "https://files.pythonhosted.org/packages/6b/5a/9186be8db0804d808a5a82a9b7e47e6260832a5e5b5ec531a1de9dd49076/setoptconf-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3ce56730d8ff700af85bda35963ab7fa", "sha256": "5b0b5d8e0077713f5d5152d4f63be6f048d9a1bb66be15d089a11c898c3cf49c" }, "downloads": -1, "filename": "setoptconf-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3ce56730d8ff700af85bda35963ab7fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13200, "upload_time": "2014-03-22T20:54:25", "url": "https://files.pythonhosted.org/packages/6b/5a/9186be8db0804d808a5a82a9b7e47e6260832a5e5b5ec531a1de9dd49076/setoptconf-0.2.0.tar.gz" } ] }