{ "info": { "author": "Takeshi Komiya", "author_email": "i.tkomiya at gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Database", "Topic :: Software Development", "Topic :: Software Development :: Testing" ], "description": "About\n=====\n``testing.elasticsearch`` automatically setups a elasticsearch instance in a temporary directory, and destroys it after testing.\n\n.. image:: https://travis-ci.org/tk0miya/testing.elasticsearch.svg?branch=master\n :target: https://travis-ci.org/tk0miya/testing.elasticsearch\n\n.. image:: https://coveralls.io/repos/tk0miya/testing.elasticsearch/badge.png?branch=master\n :target: https://coveralls.io/r/tk0miya/testing.elasticsearch?branch=master\n\n.. image:: https://codeclimate.com/github/tk0miya/testing.elasticsearch/badges/gpa.svg\n :target: https://codeclimate.com/github/tk0miya/testing.elasticsearch\n\n\nInstall\n=======\nUse pip::\n\n $ pip install testing.elasticsearch2\n\nAnd ``testing.elasticsearch2`` requires Elasticsearch server in your PATH.\n\n\nUsage\n=====\nCreate Elasticsearch instance using ``testing.elasticsearch.Elasticsearch``::\n\n import testing.elasticsearch\n from sqlalchemy import create_engine\n\n # Lanuch new Elasticsearch server\n with testing.elasticsearch.Elasticsearch() as elasticsearch:\n # connect to Elasticsearch (using elasticsearch-py)\n es = Elasticsearch(**elasticsearch.dsn())\n\n #\n # do any tests using Elasticsearch...\n #\n\n # Elasticsearch server is terminated here\n\n\n``testing.elasticsearch.Elasticsearch`` generates temporary config files and data directories.\nOn deleting Elasticsearch object, it terminates Elasticsearch instance and removes temporary files and directories.\n\nIf you want a database including indexes and any fixtures for your apps,\nuse ``copy_data_from`` keyword::\n\n # uses a copy of specified data directory of Elasticsearch.\n elasticsearch = testing.elasticsearch.Elasticsearch(copy_data_from='/path/to/your/index')\n\n\nFor example, you can setup new Elasticsearch server for each testcases on setUp() method::\n\n import unittest\n import testing.elasticsearch\n\n class MyTestCase(unittest.TestCase):\n def setUp(self):\n self.elasticsearch = testing.elasticsearch.Elasticsearch()\n\n def tearDown(self):\n self.elasticsearch.stop()\n\n\nRequirements\n============\n* Python 2.7, 3.3, 3.4, 3.5\n\nLicense\n=======\nApache License 2.0\n\n\nHistory\n=======\n\n1.0.0 (2016-08-20)\n-------------------\n* Drop python 2.6, 3.2 support\n* Depend on testing.common.database >= 2.0.0\n* Set booting timeout to 20sec\n* Fix bugs:\n\n - #1: find_elasticsearch_yaml_path() does not refer elasticsearch_home argument\n - #2: Make ES_PATH absolute\n\n0.9.1 (2016-02-04)\n-------------------\n* Depend on ``testing.common.database`` package\n\n0.9.0 (2015-12-13)\n-------------------\n* First 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/tk0miya/testing.elasticsearch", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "testing.elasticsearch2", "package_url": "https://pypi.org/project/testing.elasticsearch2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/testing.elasticsearch2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tk0miya/testing.elasticsearch" }, "release_url": "https://pypi.org/project/testing.elasticsearch2/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "automatically setups a elasticsearch instance in a temporary directory, and destroys it after testing", "version": "1.0.0" }, "last_serial": 2292253, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "25d568e9d2ddf5711960ab96773b0f00", "sha256": "7be10e0ff46406609c5af474b2848dfbc99b6ca9b6bcee66ba0ebe404c1953dd" }, "downloads": -1, "filename": "testing.elasticsearch2-0.9.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "25d568e9d2ddf5711960ab96773b0f00", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7992, "upload_time": "2015-12-13T05:18:30", "url": "https://files.pythonhosted.org/packages/4a/e4/09d7921b10c2a9d2beb4f61f49e064ea42d53be6c3e409c2fe02b483f264/testing.elasticsearch2-0.9.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0d51d735e9163786fda229ffb49a294", "sha256": "54c064eb7d4783f49d472876e04cabf89d077b9ada80a2ce9eec54f13a69a751" }, "downloads": -1, "filename": "testing.elasticsearch2-0.9.0.tar.gz", "has_sig": false, "md5_digest": "e0d51d735e9163786fda229ffb49a294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10629, "upload_time": "2015-12-13T05:18:14", "url": "https://files.pythonhosted.org/packages/76/e5/44ba03bf9d9eca5813e2ec0a52da67544d1b9029d0dbcc41643fcfc18de6/testing.elasticsearch2-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "cfa7e080802a264802c7c2232e964919", "sha256": "5ebaeb2dabb34346a3cbe017d4d52c1da98820118645f4a39dd8f5212ccfe477" }, "downloads": -1, "filename": "testing.elasticsearch2-0.9.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cfa7e080802a264802c7c2232e964919", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7024, "upload_time": "2016-02-04T14:01:47", "url": "https://files.pythonhosted.org/packages/b4/81/e82100120de591539e0498867bf3d3c92f0f119278fa54074aff2a2b6fc4/testing.elasticsearch2-0.9.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81f092ebdc33e4060e5faf6a03cb2104", "sha256": "bd03ec03974b35e2687622289a90d3081359075e5f9fdf912afa3f925c08da17" }, "downloads": -1, "filename": "testing.elasticsearch2-0.9.1.tar.gz", "has_sig": false, "md5_digest": "81f092ebdc33e4060e5faf6a03cb2104", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9706, "upload_time": "2016-02-04T14:01:33", "url": "https://files.pythonhosted.org/packages/73/88/153afaeec3238e15d4481c2273e16fe29b94cb7396a97b7f411b31090b77/testing.elasticsearch2-0.9.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ae3bdf839521468c50c9ebb191c4d9e6", "sha256": "2d31e1e702b034b79bafa652d1d254958ea5f1dbb3adb035ddadef26f0615f93" }, "downloads": -1, "filename": "testing.elasticsearch2-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae3bdf839521468c50c9ebb191c4d9e6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7303, "upload_time": "2016-08-20T08:13:13", "url": "https://files.pythonhosted.org/packages/c4/82/6378ee5d9c5041e495a565282a3477c58a0002d0527a657fc5353c2df320/testing.elasticsearch2-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab66adf329aae5ea0724db060ed94ac7", "sha256": "c085e64251c9df88191e556d5ba43816f6bfa44dcc3ac37f8fdecbf07caee593" }, "downloads": -1, "filename": "testing.elasticsearch2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ab66adf329aae5ea0724db060ed94ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9859, "upload_time": "2016-08-20T08:13:10", "url": "https://files.pythonhosted.org/packages/67/ca/3172ca5eb5ac8f0f1533f76024acebef1204258649be5f1e19f47f4a6162/testing.elasticsearch2-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae3bdf839521468c50c9ebb191c4d9e6", "sha256": "2d31e1e702b034b79bafa652d1d254958ea5f1dbb3adb035ddadef26f0615f93" }, "downloads": -1, "filename": "testing.elasticsearch2-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae3bdf839521468c50c9ebb191c4d9e6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7303, "upload_time": "2016-08-20T08:13:13", "url": "https://files.pythonhosted.org/packages/c4/82/6378ee5d9c5041e495a565282a3477c58a0002d0527a657fc5353c2df320/testing.elasticsearch2-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab66adf329aae5ea0724db060ed94ac7", "sha256": "c085e64251c9df88191e556d5ba43816f6bfa44dcc3ac37f8fdecbf07caee593" }, "downloads": -1, "filename": "testing.elasticsearch2-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ab66adf329aae5ea0724db060ed94ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9859, "upload_time": "2016-08-20T08:13:10", "url": "https://files.pythonhosted.org/packages/67/ca/3172ca5eb5ac8f0f1533f76024acebef1204258649be5f1e19f47f4a6162/testing.elasticsearch2-1.0.0.tar.gz" } ] }