{ "info": { "author": "Johan Bloemberg", "author_email": "mail@ijohan.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "===============================\nrcfile\n===============================\n\n.. image:: https://badge.fury.io/py/rcfile.png\n :target: http://badge.fury.io/py/rcfile\n\n.. image:: https://travis-ci.org/aequitas/rcfile.png?branch=master\n :target: https://travis-ci.org/aequitas/rcfile\n\n.. image:: https://pypip.in/d/rcfile/badge.png\n :target: https://crate.io/packages/rcfile?version=latest\n\n.. image:: https://coveralls.io/repos/aequitas/rcfile/badge.png?branch=master \n :target: https://coveralls.io/r/aequitas/rcfile?branch=master\n\nConfiguration file loader for Python projects\n\nBased on: https://github.com/dominictarr/rc\n\nFeatures\n--------\n\nRead environment variables and config files and return them merged with predefined list of arguments.\n\nArguments:\n - appname: application name, used for config files and environemnt variable names.\n - args: arguments from command line (optparse, docopt, etc).\n - strip_dashes: strip dashes prefixing key names from args dict.\n\nReturns:\n dict containing the merged variables of environment variables, config files and args.\n\nEnvironment variables are read if they start with appname in uppercase with underscore, for example:\n\n::\n\n TEST_VAR=1\n\nConfig files compatible with ConfigParser are read and the section name appname is read, example:\n\n::\n\n [appname]\n var=1\n\nFiles are read from: \n - /etc/appname/config\n - /etc/appfilerc\n - ~/.config/appname/config\n - ~/.config/appname\n - ~/.appname/config\n - ~/.appnamerc\n - .appnamerc\n - file provided by config variable in args\n\nExample usage with docopt:\n\n::\n\n args = rcfile(__name__, docopt(__doc__, version=__version__))\n\n* TODO\n\nRequirements\n------------\n\n- Python >= 2.6 or >= 3.3\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE `_ file for more details.", "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/aequitas/rcfile", "keywords": "rcfile", "license": "Copyright 2013 Johan Bloemberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "rcfile", "package_url": "https://pypi.org/project/rcfile/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/rcfile/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aequitas/rcfile" }, "release_url": "https://pypi.org/project/rcfile/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Configuration file loader", "version": "0.1.4" }, "last_serial": 1141559, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e5bdb5b485f783472736bd1715e56660", "sha256": "d5f064242dd493f9eae7abadfc5c6bb7576dafa55d70987e6a48c765de647560" }, "downloads": -1, "filename": "rcfile-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e5bdb5b485f783472736bd1715e56660", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3618, "upload_time": "2013-11-14T23:22:04", "url": "https://files.pythonhosted.org/packages/c4/cd/d1c642d697458d6dfe606ae37625558c6dcc53e8555acae9f2b2f237602f/rcfile-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4ac7eb703e55a20b967523a22ab74e0a", "sha256": "25eb5ebcfe30c0f72adf0d4bf65e4214884b0ce7061444c2e02d0ebe9f751947" }, "downloads": -1, "filename": "rcfile-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4ac7eb703e55a20b967523a22ab74e0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3611, "upload_time": "2013-11-14T23:29:02", "url": "https://files.pythonhosted.org/packages/e7/00/47a37ceb268cc4df7fade6d1aae3efccbcb09b98d0b7ded2ec2d074c1d4c/rcfile-0.1.1.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5444513dac076018f5d75fee9ec52b1c", "sha256": "3fa3a9757a11f2e7b2f1ea7ea4e1144fe4f2e964865832b2891739579072cc14" }, "downloads": -1, "filename": "rcfile-0.1.4-py27-none-any.whl", "has_sig": false, "md5_digest": "5444513dac076018f5d75fee9ec52b1c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6104, "upload_time": "2014-06-29T20:58:39", "url": "https://files.pythonhosted.org/packages/ae/cb/208b8622eae72fb0e3a6db423177723a794c1577bb746a8c541f02824156/rcfile-0.1.4-py27-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5459564f69b5818cc8845737e1861122", "sha256": "21bdab7e1b82a6277c18effc90e1163e9e09edbcded260a3940d6a3afa5f8bf9" }, "downloads": -1, "filename": "rcfile-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5459564f69b5818cc8845737e1861122", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3820, "upload_time": "2014-06-29T20:58:37", "url": "https://files.pythonhosted.org/packages/bd/6e/18417ba4cb5260ab7f079247e681f79c06581a8cc3ec18377585deb0de8f/rcfile-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5444513dac076018f5d75fee9ec52b1c", "sha256": "3fa3a9757a11f2e7b2f1ea7ea4e1144fe4f2e964865832b2891739579072cc14" }, "downloads": -1, "filename": "rcfile-0.1.4-py27-none-any.whl", "has_sig": false, "md5_digest": "5444513dac076018f5d75fee9ec52b1c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6104, "upload_time": "2014-06-29T20:58:39", "url": "https://files.pythonhosted.org/packages/ae/cb/208b8622eae72fb0e3a6db423177723a794c1577bb746a8c541f02824156/rcfile-0.1.4-py27-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5459564f69b5818cc8845737e1861122", "sha256": "21bdab7e1b82a6277c18effc90e1163e9e09edbcded260a3940d6a3afa5f8bf9" }, "downloads": -1, "filename": "rcfile-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5459564f69b5818cc8845737e1861122", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3820, "upload_time": "2014-06-29T20:58:37", "url": "https://files.pythonhosted.org/packages/bd/6e/18417ba4cb5260ab7f079247e681f79c06581a8cc3ec18377585deb0de8f/rcfile-0.1.4.tar.gz" } ] }