{ "info": { "author": "Eduardo Naufel Schettino", "author_email": "schettino72@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "configclass - A Python to class to hold configuration values\n==============================================================\n\n.. display some badges\n\n.. image:: https://travis-ci.org/schettino72/configclass.png?branch=master\n :target: https://travis-ci.org/schettino72/configclass\n\n.. image:: https://coveralls.io/repos/schettino72/configclass/badge.png\n :target: https://coveralls.io/r/schettino72/configclass\n\n\n\n\nA `Config` is a `dict` with a where:\n\n * existing items can be modified but no items can not be added\n * has `make()` method so you can easily created derived configs\n * `make()` has the same API as `dict.update()`\n * `make()` will merge values according to `mergedict.ConfigDict.merge()`\n * for convenience, make can take a `None` to perform a simple copy\n\n\n::\n\n >>> from configclass import Config\n\n >>> c1 = Config({'a': 1, 'b': ['foo']})\n\n # can't add new items to config\n >>> c1.make({'a':2, 'c': [2]})\n Traceback (most recent call last):\n KeyError: 'New items can not be added to Config, invalid key:c'\n\n # new config object created\n >>> c2 = c1.make({'a':2})\n >>> c2\n Config({'a': 2, 'b': ['foo']})\n\n # original object is not modified\n >>> c1\n Config({'a': 1, 'b': ['foo']})\n\n # make() can take keyword arguments, note how lists are merged\n >>> c2.make(b=['bar'])\n Config({'a': 2, 'b': ['foo', 'bar']})\n\n\n\n`configclass.ConfigMixin` can be used to create a `Config` class\nthat is not based on `mergedict.ConfigDict`. Check unittests for usage.\n\n\n\nProject Details\n===============\n\n- Project management on github - https://github.com/schettino72/configclass/\n\n\nlicense\n=======\n\nThe MIT License\nCopyright (c) 2014 Eduardo Naufel Schettino\n\nsee LICENSE file\n\n\ndevelopers / contributors\n==========================\n\n- Eduardo Naufel Schettino\n\n\ninstall\n=======\n\n::\n\n $ pip install configclass\n\nor download and::\n\n $ python setup.py install\n\n\ntests\n=======\n\nInstall dependencies in `dev_requirements.txt`.\n\nTo run the tests::\n\n $ py.test", "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/schettino72/configclass/", "keywords": "dict,config", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "configclass", "package_url": "https://pypi.org/project/configclass/", "platform": "any", "project_url": "https://pypi.org/project/configclass/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/schettino72/configclass/" }, "release_url": "https://pypi.org/project/configclass/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "A Python to class to hold configuration values.", "version": "0.1.0" }, "last_serial": 1163955, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e49798a7ddba6f7c198639c0721082ef", "sha256": "e10b26d2476089d3c98e7dd3b535a93df86a3c6c86a3d08ec047f4d730f9dd1c" }, "downloads": -1, "filename": "configclass-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e49798a7ddba6f7c198639c0721082ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3246, "upload_time": "2014-07-21T07:14:48", "url": "https://files.pythonhosted.org/packages/8d/bd/c408897e93e150f1108bdca05cd1e19fac96ab4c6f41c138fc2be93397c3/configclass-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e49798a7ddba6f7c198639c0721082ef", "sha256": "e10b26d2476089d3c98e7dd3b535a93df86a3c6c86a3d08ec047f4d730f9dd1c" }, "downloads": -1, "filename": "configclass-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e49798a7ddba6f7c198639c0721082ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3246, "upload_time": "2014-07-21T07:14:48", "url": "https://files.pythonhosted.org/packages/8d/bd/c408897e93e150f1108bdca05cd1e19fac96ab4c6f41c138fc2be93397c3/configclass-0.1.0.tar.gz" } ] }