{ "info": { "author": "Brent Tubbs", "author_email": "brent.tubbs@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "appsettings\n===========\n\nSometimes you want to read a setting from the command line. Sometimes you want\nto read it from an environment variable. Sometimes you want to read it from a\nconfig file.\n\nAnd in some very special times, you want to allow the value to be passed using\nsome combination of the three.\n\nThe appsettings module provides an argparse subclass that allows pulling\nsettings from the command line, environment variables, or a yaml config file.\n\nIf the same value is provided in several of those locations, then env var\nalways beats config file, and command line always beats everything.\n\nUsage is exactly the same as argparse, with the addition of some new kwargs on\ninitializing the parser and adding arguments to it. Example::\n\n from appsettings import SettingsParser\n\n f = open('some_config_file.yaml')\n parser = SettingsParser(yaml_file=f)\n\n parser.add_argument('--color', default='blue', env_var='FAVCOLOR')\n\n args = parser.parse_args()\n\n print args.color\n # If you've set the FAVCOLOR environment variable you should now see its\n # value printed to the console. Otherwise you'd see 'blue'\n\n\nThings to Know\n==============\n\nOptions Only\n------------\n\nOnly long form arguments like \"--color\" will provide env var and config file\nfallbacks. Positional arguments and short options like \"-c\" will behave just\nlike they do in the argparse module.\n\nAPP_SETTINGS_YAML\n-----------------\n\nIf you don't provide a yaml_file argument to the SettingsParser constructor,\nand the APP_SETTINGS_YAML environment variable is set, then that file will be\nread and parsed to provide settings. (Though they'll still be overridable by\nenvironment variables and command line options.)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/btubbs/appsettings/", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "appsettings", "package_url": "https://pypi.org/project/appsettings/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/appsettings/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/btubbs/appsettings/" }, "release_url": "https://pypi.org/project/appsettings/0.8/", "requires_dist": null, "requires_python": null, "summary": "Argparse wrapper that supports fallback settings in env vars and/or a yaml file.", "version": "0.8" }, "last_serial": 2088951, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "535ed92c97478153a639737665d0b25a", "sha256": "8f8fb6b4cd48e6ce173ad2be5445987b0397356f4277e7b2f16b02b0f6206f9a" }, "downloads": -1, "filename": "appsettings-0.1.tar.gz", "has_sig": false, "md5_digest": "535ed92c97478153a639737665d0b25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1854, "upload_time": "2012-11-05T23:44:31", "url": "https://files.pythonhosted.org/packages/56/ac/6c6ad480e3a177d5bcaaf9ec123e68a53cc184cf2886337531149c7401c2/appsettings-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "325c82c1cf0e8dfff41ef4f4e133e1b0", "sha256": "5f62af32b3f2bd1d434c9a40b34de20bb013aba854a78636e03315349496c209" }, "downloads": -1, "filename": "appsettings-0.2.tar.gz", "has_sig": false, "md5_digest": "325c82c1cf0e8dfff41ef4f4e133e1b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1861, "upload_time": "2012-11-05T23:52:32", "url": "https://files.pythonhosted.org/packages/be/e3/0b7b5ef4f368b9759bf4ce4e2ef69920daf648982526a3853a5d0857d85b/appsettings-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7ebf98b321d71e5644138ec528024b7f", "sha256": "1986dee45aefa466f82f388d80975e095e1c57b718bda66a6f1471ad0583ef4b" }, "downloads": -1, "filename": "appsettings-0.3.tar.gz", "has_sig": false, "md5_digest": "7ebf98b321d71e5644138ec528024b7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3176, "upload_time": "2013-08-17T01:02:47", "url": "https://files.pythonhosted.org/packages/2a/f4/8e4498fa54160fd969d263404f889f6e7729080ab6cc5961d3426b2a801d/appsettings-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "f970c43466d8e440576ac66496d4ed4e", "sha256": "bd8ccf58c8e419ed4eb54f5d58fc9f9b45c1e79243de4c5030299dc6a83d6a8e" }, "downloads": -1, "filename": "appsettings-0.3.1.tar.gz", "has_sig": false, "md5_digest": "f970c43466d8e440576ac66496d4ed4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2013-08-17T19:34:12", "url": "https://files.pythonhosted.org/packages/72/9b/3e9fb0aaf2668bb4664e98f6f51697d99d76fc5641f8d85046f3e83aa2a0/appsettings-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "256d6fb82a086095d56d0c67735c97da", "sha256": "c8cea460b778f4271c558a818d5d8dbb7ce6029bd3f10eb3394243ffaf544f86" }, "downloads": -1, "filename": "appsettings-0.3.2.tar.gz", "has_sig": false, "md5_digest": "256d6fb82a086095d56d0c67735c97da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3211, "upload_time": "2013-08-17T19:51:33", "url": "https://files.pythonhosted.org/packages/13/a9/418c288e852f29c25c98640919b1ac8da0dab1623f6135130c7bfc781df0/appsettings-0.3.2.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "b344d80f519276eabc797d90d691bd72", "sha256": "be77346cd965079c133c9c323500582ad19312d6e0e7768afec0b67c286a0794" }, "downloads": -1, "filename": "appsettings-0.4.tar.gz", "has_sig": false, "md5_digest": "b344d80f519276eabc797d90d691bd72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3333, "upload_time": "2013-09-25T16:46:40", "url": "https://files.pythonhosted.org/packages/21/b5/bdea15a00d9c65cbdc48601de277ed05d455cec9d4e068f36625c870a07a/appsettings-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "6e03aedbc301cd7a5e36095068cec731", "sha256": "7050965a84bff74ef67f13d77fe4e1f61a7d7fdcf702dcd00802636cd9789c8a" }, "downloads": -1, "filename": "appsettings-0.5.tar.gz", "has_sig": false, "md5_digest": "6e03aedbc301cd7a5e36095068cec731", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3353, "upload_time": "2013-10-10T00:47:24", "url": "https://files.pythonhosted.org/packages/ef/9e/3705cc441dafcb06abb1d9f76c24207e66c65e090a7058409ea9413cb23d/appsettings-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "da30844227fbb2a3af9e7d0ded282c7d", "sha256": "843f9166b6765f74ff69ef78ad02f90b51c5d46c08f28a1bd69edafb03089768" }, "downloads": -1, "filename": "appsettings-0.6.tar.gz", "has_sig": false, "md5_digest": "da30844227fbb2a3af9e7d0ded282c7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3407, "upload_time": "2015-01-13T17:34:51", "url": "https://files.pythonhosted.org/packages/3f/d2/8cbc00f2cd2704b443f6ae05237b427cdae6236a30c23e32d9b6affbf4ca/appsettings-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "272b6e246b69a87c20166bb33921f6ed", "sha256": "f155c3972093869ddf19f228b5f52e18ab1712abd327e3634fc4c23b5a8d6df8" }, "downloads": -1, "filename": "appsettings-0.7.tar.gz", "has_sig": false, "md5_digest": "272b6e246b69a87c20166bb33921f6ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3634, "upload_time": "2015-05-29T02:55:46", "url": "https://files.pythonhosted.org/packages/f0/88/8ad859033d71acf0c479c43fd3e7a37fa9b3fa4ccd8f6559b00fca66ef98/appsettings-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "1181cede5c13378f4dd6b404c0936c8e", "sha256": "8aa90699a67a90edf88b11b6f5d539506daee4395f7e6bbae62c5e6505b2ddd6" }, "downloads": -1, "filename": "appsettings-0.8.tar.gz", "has_sig": false, "md5_digest": "1181cede5c13378f4dd6b404c0936c8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3756, "upload_time": "2016-04-28T15:32:21", "url": "https://files.pythonhosted.org/packages/c0/5b/ce768ca9fcbdb8bdb41b6c6032b0ebd12532b18670a10b5e4b5a01d67899/appsettings-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1181cede5c13378f4dd6b404c0936c8e", "sha256": "8aa90699a67a90edf88b11b6f5d539506daee4395f7e6bbae62c5e6505b2ddd6" }, "downloads": -1, "filename": "appsettings-0.8.tar.gz", "has_sig": false, "md5_digest": "1181cede5c13378f4dd6b404c0936c8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3756, "upload_time": "2016-04-28T15:32:21", "url": "https://files.pythonhosted.org/packages/c0/5b/ce768ca9fcbdb8bdb41b6c6032b0ebd12532b18670a10b5e4b5a01d67899/appsettings-0.8.tar.gz" } ] }