{ "info": { "author": "Luke Campbell", "author_email": "LCampbell@ASAScience.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Topic :: Database :: Front-Ends", "Topic :: System :: Software Distribution", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "elasticpy\n===========\n_\"ElasticSearch for the rest of us\"_\n\nPython wrapper for the elasticsearch indexing utility. \n\nAuthor: [Luke Campbell](http://lukecampbell.github.com/) [](mailto:luke.s.campbell@gmail.com)\n\nAbout\n-----\nThe goal of this module is to provide an intuitive interface between Python APIs and the ElasticSearch API. Connections are provided through the `requests` library so the connections are inherently thread safe and pooled. \n\nWriting complex queries in JSON can be tedius and time consuming if you need to constantly reference the Query DSL guide, so we've wrapped most of the operations in classes with methods corresponding to the parameters of the operation. For example:\n\n sorts = ElasticSort()\n sorts.sort('name',order='asc')\n sorts.sort('_score')\n ----\n [{\"name\": {\"order\": \"asc\"}}, {\"_score\": {\"order\": \"asc\"}}]\n\nQueries, Filters, Sorts, Maps and Facets are wrapped in convenience classes. Searching is done through the ElasticSearch class. \n\nHOWTO\n-----\n\nTo begin using elasticpy start by importing.\n\n import elasticpy as ep\n\nTo interface with the elasticsearch server use the ElasticSearch object.\n\n search = ep.ElasticSearch() # Defaults to localhost:9200\n\nTo form a query use the ElasticQuery wrapper objects.\n\n query = ep.ElasticQuery().term('users':'luke')\n\n # and then pass it to the search object\n\n search.search_advanced('twitter','feeds',query)\n\n > {u'_shards': {u'failed': 0, u'successful': 5, u'total': 5},\n u'hits': {u'hits': [{u'_id': u'1',\n u'_index': u'twitter',\n u'_score': 0.30685282,\n u'_source': {u'content': u'This is an example.', u'user': u'luke'},\n u'_type': u'feeds'}],\n u'max_score': 0.30685282,\n u'total': 1},\n u'timed_out': False,\n u'took': 3}\n\nUSAGE\n-----\n* Queries - `ElasticQuery`\n\n query = ElasticQuery()\n\n * Term Searches \n\n query.term(name='luke')\n\n * Text Searches\n\n query.text('message', 'this is a test')\n\n * Text Phrases\n\n query.text_phrase('message', 'this is a test')\n\n * Fuzzy\n\n query.fuzzy('name','luke',boost=1.0)\n\n * Fuzzy Like This\n\n query.fuzzy_like_this('luke',fields='_all')\n\n * **Match All**\n\n query.match_all()\n\n * Wildcard\n\n query.wildcard('name','lu*')\n\n* Filters - `ElasticFilter`\n\n filters = ElasticFilter()\n\n * And\n\n filters.and_filter(query)\n\n * Bool\n\n filters.bool_filter(must=query1, must_not=query2, should=query3)\n\n * Geo\n\n * Geo Distance\n\n filters.geo_distance('location',{'lat':30,'lon':30}, '20km')\n\n * Geo Bounding Box\n\n filters.geo_bounding_box('location', {'lat':60, 'lon':60}, {'lat':30, 'lon':30})\n\n * Match All\n\n filters.match_all()\n\n * Range\n\n filters.numeric_range('price',8.0, 9.9)\n\n\n\nCopying\n-----------\n\n**elasticpy** - Python Wrapper for ElasticSearch\n\nCopyright 2012 UC Regents\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/ooici/elasticpy/", "keywords": "elasticsearch search wrapper", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "elasticpy", "package_url": "https://pypi.org/project/elasticpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/elasticpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/ooici/elasticpy/" }, "release_url": "https://pypi.org/project/elasticpy/0.12/", "requires_dist": null, "requires_python": null, "summary": "Python Wrapper for elasticsearch", "version": "0.12" }, "last_serial": 2867947, "releases": { "0.10": [ { "comment_text": "", "digests": { "md5": "bd17ffbdd8bde4ca3987de22e1593351", "sha256": "ef266d74ec60b773e54c89dd20671e8dfd322339902441f1c3114fc443af1a66" }, "downloads": -1, "filename": "elasticpy-0.10.tar.gz", "has_sig": false, "md5_digest": "bd17ffbdd8bde4ca3987de22e1593351", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16706, "upload_time": "2012-07-27T19:40:53", "url": "https://files.pythonhosted.org/packages/7e/72/e3b99ad85546ad9a2930f026b9959f1c1a385a70a7bcffb61b326f70c513/elasticpy-0.10.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "4fb89152e95df3b40631ba8cfcb7319b", "sha256": "ec847e1a2e962d1eb34cbedabee0e672b279989680e867270100c0f194c4e73d" }, "downloads": -1, "filename": "elasticpy-0.11.tar.gz", "has_sig": false, "md5_digest": "4fb89152e95df3b40631ba8cfcb7319b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17056, "upload_time": "2012-10-17T14:11:55", "url": "https://files.pythonhosted.org/packages/9e/a8/d5b44cfc0089bd3519cedfa3e9d768296c51c2f132bb3bca17e4f3d2490a/elasticpy-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "ca39f9a132c4fc5f257e5eb66b951a5a", "sha256": "bbe91527e16c944872f578132c6a637cda726866acc10cabc000365e6fb16217" }, "downloads": -1, "filename": "elasticpy-0.12.tar.gz", "has_sig": false, "md5_digest": "ca39f9a132c4fc5f257e5eb66b951a5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17059, "upload_time": "2013-04-16T19:58:24", "url": "https://files.pythonhosted.org/packages/1c/c3/038503b00f5283a3b80b9c5f4e326c21410c16fe4003d70f026af5df80de/elasticpy-0.12.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "6d350826c99a6e84d8011b29fd635671", "sha256": "57b9b0142f80939e35830d01a93c1d0343a3309360a75b1e0df9a95dad9a2ad0" }, "downloads": -1, "filename": "elasticpy-0.2.tar.gz", "has_sig": false, "md5_digest": "6d350826c99a6e84d8011b29fd635671", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14131, "upload_time": "2012-04-13T16:44:00", "url": "https://files.pythonhosted.org/packages/df/6e/a8e0f5a1f921ab35b9586f5142c279879d8c03c8b5ab9011e107a2fe1434/elasticpy-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f79c1b8b6daf0998dad0bee04ba4aec7", "sha256": "55930e432cb4ecafff41e07323ef071ab9143312db0809badb104990b00053e8" }, "downloads": -1, "filename": "elasticpy-0.3.tar.gz", "has_sig": false, "md5_digest": "f79c1b8b6daf0998dad0bee04ba4aec7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14204, "upload_time": "2012-04-17T17:30:30", "url": "https://files.pythonhosted.org/packages/35/f3/39437afa18159e7b429c3194d46b7543207ad5aa598236879fda2fa5e34e/elasticpy-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "1acd6243012115508be82a3e2225497d", "sha256": "f292654058b6ee94101eb1a8228bf0cf2bc8e8e809986b97d6c665296b3d6abf" }, "downloads": -1, "filename": "elasticpy-0.4.tar.gz", "has_sig": false, "md5_digest": "1acd6243012115508be82a3e2225497d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15156, "upload_time": "2012-04-19T17:55:13", "url": "https://files.pythonhosted.org/packages/5b/af/a707b004f9651c8670b8fca2a5354ff93cf92307f3b3978d4e2fc66067ce/elasticpy-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "65fe6dcabc3093bd6c93059d1b385e38", "sha256": "8da1351ed7ef236d577e4709afaa071f8751eac152263cba0c849c314c5c2d19" }, "downloads": -1, "filename": "elasticpy-0.5.tar.gz", "has_sig": false, "md5_digest": "65fe6dcabc3093bd6c93059d1b385e38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15316, "upload_time": "2012-04-23T16:04:45", "url": "https://files.pythonhosted.org/packages/fa/fb/fff0833668d3df423b5c076e237c440477e2c7cc0da3759e9edf4124d232/elasticpy-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "835f0838709ab0f9600d1895edaee139", "sha256": "e74784da618da24fb0e4d08305a2354382980a129bdf009cd0a901c81c2ee2a3" }, "downloads": -1, "filename": "elasticpy-0.6.tar.gz", "has_sig": false, "md5_digest": "835f0838709ab0f9600d1895edaee139", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15413, "upload_time": "2012-04-30T16:57:44", "url": "https://files.pythonhosted.org/packages/28/5c/36b68beaad420111958bca564262c1e97cd6c18d71c6332a6f7993d10bba/elasticpy-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "0b602637b8e0c39513f9e842915224f3", "sha256": "8e27e3ae6191ba47070e132fd0bebda70c1b649d146b37c89e05907fb1616bc3" }, "downloads": -1, "filename": "elasticpy-0.7.tar.gz", "has_sig": false, "md5_digest": "0b602637b8e0c39513f9e842915224f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15557, "upload_time": "2012-05-16T17:44:34", "url": "https://files.pythonhosted.org/packages/24/57/21625987c17b72d5677ee64c26718366b6f80fb75210b314dc73ec801a5e/elasticpy-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "a4211ba68e29fe051fae2bade10039f5", "sha256": "8434031b8459fb6eb0dcf4af4c45a954691b14d86ff91af7b3c980d0535af9de" }, "downloads": -1, "filename": "elasticpy-0.8.tar.gz", "has_sig": false, "md5_digest": "a4211ba68e29fe051fae2bade10039f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15589, "upload_time": "2012-05-29T20:20:13", "url": "https://files.pythonhosted.org/packages/c1/09/50c7ccf5781960537100c432093b74380e38152150d20ae1a4608bf6374a/elasticpy-0.8.tar.gz" } ], "0.8a": [ { "comment_text": "", "digests": { "md5": "2b861bf9d23f3017b73fffce8233e005", "sha256": "03291c3e75ff890143f9e338a836ca4f01edd5fcaa875a811dfe936c3d60387c" }, "downloads": -1, "filename": "elasticpy-0.8a.tar.gz", "has_sig": false, "md5_digest": "2b861bf9d23f3017b73fffce8233e005", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15588, "upload_time": "2012-05-30T16:15:20", "url": "https://files.pythonhosted.org/packages/d4/e9/d1694db34ef3e71e9ce60e16ba7e830fa06cfe7da225b220d2bbe22bd1ca/elasticpy-0.8a.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "e699b934b6a8b1a6fa62820ef0afef1f", "sha256": "da7759d4d5571c5a3f449018b178a76af48d78ab493893b22760ef0e798bd40f" }, "downloads": -1, "filename": "elasticpy-0.9.tar.gz", "has_sig": false, "md5_digest": "e699b934b6a8b1a6fa62820ef0afef1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16599, "upload_time": "2012-06-07T17:01:08", "url": "https://files.pythonhosted.org/packages/a2/cf/9c0d6491c8520efb501124a49b0e73e037cc7933e3a0a384693d8a2225c4/elasticpy-0.9.tar.gz" } ], "0.9a": [ { "comment_text": "", "digests": { "md5": "77e500a6a71495f34fdf63c500b78dbe", "sha256": "085825328c2d94f6dd9ca96d757f2468bf503a5d65b783b70d66c15abbbbea17" }, "downloads": -1, "filename": "elasticpy-0.9a.tar.gz", "has_sig": false, "md5_digest": "77e500a6a71495f34fdf63c500b78dbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16619, "upload_time": "2012-06-07T18:26:39", "url": "https://files.pythonhosted.org/packages/04/ee/7c5b1672ede3ac93ccf8dd775be12656184d069b655d900f9887629f3627/elasticpy-0.9a.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca39f9a132c4fc5f257e5eb66b951a5a", "sha256": "bbe91527e16c944872f578132c6a637cda726866acc10cabc000365e6fb16217" }, "downloads": -1, "filename": "elasticpy-0.12.tar.gz", "has_sig": false, "md5_digest": "ca39f9a132c4fc5f257e5eb66b951a5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17059, "upload_time": "2013-04-16T19:58:24", "url": "https://files.pythonhosted.org/packages/1c/c3/038503b00f5283a3b80b9c5f4e326c21410c16fe4003d70f026af5df80de/elasticpy-0.12.tar.gz" } ] }