{ "info": { "author": "David Davis", "author_email": "davisd50@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "sparc.configuration\n====================\n\nBasic common configuration tools used in the SPARC platform. Includes, but \nnot limited to Zope Component ZCML utilities.\n\nZCA Configuration\n-----------------\nTools that leverage SPARC packages are usually also dependant on Zope \nComponent Architecture (http://docs.zope.org/zope.component/narr.html). Use \nof ZCA requires component configuration,which SPARC does via ZCML \n(https://github.com/zopefoundation/zope.component/blob/master/docs/zcml.rst).\n\nAmong other things, sparc.common provides access to Configure(), an easy \nfunction that can be used to configure dependant applications.\n\n### Usage - ZCA configuration\n This simplifies your ability to create components via ZCML and have \n your application parse the ZCML files to allow them to be registered for \n lookup.\n >>> import a.package.that.contains.a.configure.zcml\n >>> import another.package.that.contains.a.configure.zcml\n >>> from sparc.common import Configure\n >>> Configure([your.package.that.contains.a.configure.zcml,\n ... another.package.that.contains.a.configure.zcml])\n\n You will now have access to components configured within those packages.\n\n### Usage - Retrieve user feedback from CLI application\n This simplifies the process of getting feedback for processing within \n a CLI application.\n >>> import sparc.common\n >>> from sparc.common import Configure\n >>> from sparc.common import ICallable\n >>> from zope.component import getUtility\n >>> Configure([sparc.common])\n >>> asker = getUtiliy(ICallable, 'sparc.common.ask_question')\n >>> answer = asker(u\"How are you?\", required = True, answers = \\\n ... \t\t\t\t{'1':'awesome','2':'ok','3':'not so good'}, tries = 3)\n How are you?\n (1) awesome\n (2) ok\n (3) not so good\n\n >>> print answer\n '1'\n\n0.0.1\n++++++++++++++++++\n\n* initial release\n\n0.0.2\n++++++++++++++++++\n\n* let value getter have a default\n* allow pacakge-less zcml imports (file-path only zcml declarations)\n* update IPyContainerConfigValue to allow deep key reference\n* fix dependency identifiers\n* fix generator error\n* remove dependency on ZCA from implementations\n* remove dependency on zope.component\n* add travis ci config\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/davisd50/sparc.configuration", "keywords": "zca", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sparc.configuration", "package_url": "https://pypi.org/project/sparc.configuration/", "platform": "", "project_url": "https://pypi.org/project/sparc.configuration/", "project_urls": { "Homepage": "https://github.com/davisd50/sparc.configuration" }, "release_url": "https://pypi.org/project/sparc.configuration/0.0.2/", "requires_dist": [ "pyaml", "setuptools", "sparc.proxy", "zope.component", "zope.configuration", "zope.interface", "zope.schema", "zope.security", "sparc.testing[zcml]; extra == 'testing'", "zope.testrunner; extra == 'testing'" ], "requires_python": "", "summary": "Configuration components for the SPARC platform", "version": "0.0.2" }, "last_serial": 3031881, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b08afa7d23350718f73f2ef798745baf", "sha256": "d8360d9b6066fb118724a07dbb33e5a814aebc5ec868ed6450cb0dab28d4e173" }, "downloads": -1, "filename": "sparc.configuration-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b08afa7d23350718f73f2ef798745baf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11249, "upload_time": "2016-12-10T13:22:44", "url": "https://files.pythonhosted.org/packages/1c/e3/07be7cd2ddec2b3f3b375c86bf91a43928dc9ac353fa19e7ae9a8e8e735a/sparc.configuration-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d725fd6cb954ea574df5bf136509a13c", "sha256": "f71a7fa190ea6617dbba90ade901b5fcd72bd81d5da2baf25075d7ff11170ff0" }, "downloads": -1, "filename": "sparc.configuration-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d725fd6cb954ea574df5bf136509a13c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 22123, "upload_time": "2017-07-18T16:51:38", "url": "https://files.pythonhosted.org/packages/03/12/019b87d674b0ddf257f48c5f44d5fec920544a1d0780c4ae98024a5a9cd5/sparc.configuration-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a60273cc35ba58a49d8455c5b56d1021", "sha256": "7915b0df3befa6a68fbd20fa691a7405ee9eb146ab34dfc3c1d7798498bd9fc4" }, "downloads": -1, "filename": "sparc.configuration-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a60273cc35ba58a49d8455c5b56d1021", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11964, "upload_time": "2017-07-18T16:51:40", "url": "https://files.pythonhosted.org/packages/fb/22/4095e4e8c079f797a7c5f1fc962a40995f7e32674e1c0b8ac8a0c14fb06b/sparc.configuration-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d725fd6cb954ea574df5bf136509a13c", "sha256": "f71a7fa190ea6617dbba90ade901b5fcd72bd81d5da2baf25075d7ff11170ff0" }, "downloads": -1, "filename": "sparc.configuration-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "d725fd6cb954ea574df5bf136509a13c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 22123, "upload_time": "2017-07-18T16:51:38", "url": "https://files.pythonhosted.org/packages/03/12/019b87d674b0ddf257f48c5f44d5fec920544a1d0780c4ae98024a5a9cd5/sparc.configuration-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a60273cc35ba58a49d8455c5b56d1021", "sha256": "7915b0df3befa6a68fbd20fa691a7405ee9eb146ab34dfc3c1d7798498bd9fc4" }, "downloads": -1, "filename": "sparc.configuration-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a60273cc35ba58a49d8455c5b56d1021", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11964, "upload_time": "2017-07-18T16:51:40", "url": "https://files.pythonhosted.org/packages/fb/22/4095e4e8c079f797a7c5f1fc962a40995f7e32674e1c0b8ac8a0c14fb06b/sparc.configuration-0.0.2.tar.gz" } ] }