{ "info": { "author": "David Davis", "author_email": "davisd50@gmail.com", "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" ], "description": "sparc.common\n============\n\nBasic common tools used in the SPARC platform. Includes, but not limited to Zope Component ZCML utilities.\n\nZCA Configuration\n-----------------\nTools that leverage SPARC packages are usually also dependant on Zope Component Architecture\n(http://docs.zope.org/zope.component/narr.html). Use of ZCA requires component configuration,\nwhich SPARC does via ZCML (https://github.com/zopefoundation/zope.component/blob/master/docs/zcml.rst).\n\nAmong other things, sparc.common provides access to Configure(), an easy function that can be used\nto configure dependant applications.\n\n### Usage - ZCA configuration\n This simplifies your ability to create components via ZCML and have your application\n parse the ZCML files to allow them to be registered for 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 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 = {'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 \nsparc.common\n==========\n\n0.0.3\n++++++++++++++++++\n\n* pypi packaging update\n\n0.0.2\n++++++++++++++++++\n\n* include zcml configuration files in packaging\n\n0.0.1\n++++++++++++++++++\n\n* initial release", "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/davisd50/sparc.common", "keywords": "zca", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "sparc.common", "package_url": "https://pypi.org/project/sparc.common/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sparc.common/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/davisd50/sparc.common" }, "release_url": "https://pypi.org/project/sparc.common/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Common utilities used within SPARC platform", "version": "0.0.3" }, "last_serial": 1792285, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e0e6e70448e0280a617a2f404d4f34bd", "sha256": "3f577f561acf9a3499d0068f4829bfc848abb313fe0b56442ee5c4687b09c178" }, "downloads": -1, "filename": "sparc.common-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e0e6e70448e0280a617a2f404d4f34bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5286, "upload_time": "2015-10-16T14:40:22", "url": "https://files.pythonhosted.org/packages/47/3c/a1ee0f9d606494335d01686338e72d4dec1070b6aecae31dc4b1d74df9b8/sparc.common-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e47e56e3a833381f9c962615a36e11a1", "sha256": "a9497fc343eea3b3bacddcadd05505fe1ac39c352207fe296d78dbb0383cecc7" }, "downloads": -1, "filename": "sparc.common-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e47e56e3a833381f9c962615a36e11a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6551, "upload_time": "2015-10-29T18:16:32", "url": "https://files.pythonhosted.org/packages/4b/1a/8dc0df4c0aab10dd10b9d4963090d3b9c4ddc259c1309b817729e0ca22f6/sparc.common-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e47e56e3a833381f9c962615a36e11a1", "sha256": "a9497fc343eea3b3bacddcadd05505fe1ac39c352207fe296d78dbb0383cecc7" }, "downloads": -1, "filename": "sparc.common-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e47e56e3a833381f9c962615a36e11a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6551, "upload_time": "2015-10-29T18:16:32", "url": "https://files.pythonhosted.org/packages/4b/1a/8dc0df4c0aab10dd10b9d4963090d3b9c4ddc259c1309b817729e0ca22f6/sparc.common-0.0.3.tar.gz" } ] }