{ "info": { "author": "Deniz Dogan", "author_email": "deniz@dogan.se", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Topic :: Internet :: WWW/HTTP :: Indexing/Search" ], "description": "Sunny\n=====\n\nThis is a very simple Solr interface for Python.\n\nInstallation\n------------\n\n```bash\n$ pip install sunny\n```\n\nUsage\n-----\n\nCreate your Solr connection (actually a pool of connections) and then\npass query parameters using simple dictionaries. The raw Solr result\nis returned as a Python dictionary.\n\n```python\n>>> import sunny\n>>> solr = sunny.Solr('http://localhost:8080/solr')\n>>> solr.query({'q': 'office',\n... 'facet': 'on',\n... 'facet.field': ['network', 'runtime']})\n{u'responseHeader': {u'status': 0, u'QTime': ...\n```\n\nParameters\n----------\n\nSolr parameters are passed as dictionaries where every value may be\neither a string or a list of strings.\n\n``wt=json`` is passed with every request no matter what, because JSON\nis easy to convert to Python objects.\n\nExample:\n\n```python\n>>> import sunny\n>>> solr = sunny.Solr('http://localhost:8080/solr')\n>>> solr.query({'q': 'office',\n... 'facet': 'on',\n... 'facet.field': ['network', 'runtime']})\n{u'responseHeader': {u'status': 0, u'QTime': ...\n```\n\nThe above is equivalent to this query string:\n``?wt=json&q=office&facet=on&facet.field=network&facet.field=runtime``\n\nIf the ``orderedmultidict`` package is installed, you may use\n``omdict`` instances instead of dictionaries.\n\nLicense\n-------\n\nBSD", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://sunny.dogan.se/", "keywords": "solr search", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "sunny", "package_url": "https://pypi.org/project/sunny/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sunny/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://sunny.dogan.se/" }, "release_url": "https://pypi.org/project/sunny/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Minimalistic interface to Solr.", "version": "0.0.4" }, "last_serial": 815746, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "5f930e8a8eee1becb4f6ba8a10595ffc", "sha256": "2e6b2921ab648f43719f60287c6b147f1898449883407809d6ea435e11ccbec4" }, "downloads": -1, "filename": "sunny-0.0.2.zip", "has_sig": false, "md5_digest": "5f930e8a8eee1becb4f6ba8a10595ffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5237, "upload_time": "2013-05-25T21:21:52", "url": "https://files.pythonhosted.org/packages/20/c9/b7943f2a306a7957af9a3ad2b1009d0e86f53383017af4609aed3e802b38/sunny-0.0.2.zip" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "83c44b8c6b79a2de31e0222be5a189f7", "sha256": "c84b26a834c8c9bfaacf3cfa5749ad9ff56c4a38bc3440ba92c465fecffe5591" }, "downloads": -1, "filename": "sunny-0.0.3.zip", "has_sig": false, "md5_digest": "83c44b8c6b79a2de31e0222be5a189f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5724, "upload_time": "2013-05-26T15:20:53", "url": "https://files.pythonhosted.org/packages/1d/f8/63a1558d2255eaea455f07c6a695283383605de7f6113ce0577bc2e42a2a/sunny-0.0.3.zip" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "18b9dd74fe8477dcb095b024725c1f7e", "sha256": "43bb995a1eee61544a7473cd7d48bda426f748b9b3a6e08e0365efc173a53da3" }, "downloads": -1, "filename": "sunny-0.0.4.zip", "has_sig": false, "md5_digest": "18b9dd74fe8477dcb095b024725c1f7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5809, "upload_time": "2013-07-15T12:22:59", "url": "https://files.pythonhosted.org/packages/f1/0f/05957a2dc547ff154a4a0096959e0bb71ad4ce90f59709967cafaffcd865/sunny-0.0.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18b9dd74fe8477dcb095b024725c1f7e", "sha256": "43bb995a1eee61544a7473cd7d48bda426f748b9b3a6e08e0365efc173a53da3" }, "downloads": -1, "filename": "sunny-0.0.4.zip", "has_sig": false, "md5_digest": "18b9dd74fe8477dcb095b024725c1f7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5809, "upload_time": "2013-07-15T12:22:59", "url": "https://files.pythonhosted.org/packages/f1/0f/05957a2dc547ff154a4a0096959e0bb71ad4ce90f59709967cafaffcd865/sunny-0.0.4.zip" } ] }