{ "info": { "author": "Aaron Mildenstein", "author_email": "aaron@mildensteins.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. _readme:\n\nes_client\n=========\n\nYou may wonder why this even exists, as at first glance it doesn't seem to make\nanything any easier than just using ``elasticsearch.Elasticsearch()`` to\nbuild a client connection. I needed to be able to reuse the more complex\nschema validation bits I was employing, namely:\n\n* ``master_only`` detection\n* AWS IAM credential collection via ``boto3.session.Session``\n* Elasticsearch version checking and validation, and the option to skip this.\n* Configuration value validation, including file paths for SSL certificates,\n meaning:\n\n * No unknown keys or unacceptable parameter values are accepted\n * Acceptable values and ranges are established--and easy to amend, if\n necessary.\n\nSo, if you don't need these, then this library probably isn't what you're\nlooking for. If you want these features, then you've come to the right place.\n\nExample Usage\n-------------\n\n::\n\n from es_client import Builder\n\n config = {\n 'elasticsearch': {\n 'master_only': True,\n 'client': {\n 'hosts': '10.0.0.123',\n 'use_ssl': True,\n 'ca_certs': '/etc/elasticsearch/certs/ca.crt',\n 'username': 'joe_user',\n 'password': 'password',\n 'timeout': 60,\n }\n }\n }\n\n try:\n client = Builder(config).client\n except:\n # Do exception handling here...\n\nAdditionally, you can read from a YAML configuration file:\n\n::\n\n ---\n elasticsearch:\n master_only: true\n client:\n hosts: 10.0.0.123\n use_ssl: true\n ca_certs: /etc/elasticsearch/certs/ca.crt\n username: joe_user\n password: password\n timeout: 60\n\n::\n\n from es_client import Builder\n from es_client.exceptions import ConfigurationError\n from es_client.helpers.utils import get_yaml\n\n try:\n client = Builder(get_yaml('/path/to/es_client.yml').client\n except:\n # Do exception handling here...\n\nThe same schema validations apply here as well.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/untergeek/es_client", "keywords": "elasticsearch", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "es-client", "package_url": "https://pypi.org/project/es-client/", "platform": "", "project_url": "https://pypi.org/project/es-client/", "project_urls": { "Homepage": "http://github.com/untergeek/es_client" }, "release_url": "https://pypi.org/project/es-client/1.1.1/", "requires_dist": [ "boto3", "certifi (>=2018.1.18)", "elasticsearch (>=6.2.0)", "pyyaml (>=3.12)", "requests-aws4auth", "setuptools (>=30.3.0)", "voluptuous (>=0.11.1)" ], "requires_python": "", "summary": "\"Elasticsearch Client builder, complete with schema validation, and AWS boto-based authentication\"", "version": "1.1.1" }, "last_serial": 3841273, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "855bc03a522078ff6dd9fea820e2617b", "sha256": "36fc2922f75d1564f638b854476dbd484bc9bb931b61723744b97ecb0edf1066" }, "downloads": -1, "filename": "es_client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "855bc03a522078ff6dd9fea820e2617b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14540, "upload_time": "2018-04-12T04:54:40", "url": "https://files.pythonhosted.org/packages/5d/91/fd98ce1771899307d26811fcf88cbdb791b9298df22726b2a818528d222c/es_client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "7002e09d723835335b23c2811740289b", "sha256": "85f0fb7735f5ad5672d40fd402a315a3c296cbae1519ece3acd7b11b9d141212" }, "downloads": -1, "filename": "es_client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7002e09d723835335b23c2811740289b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16457, "upload_time": "2018-04-12T14:13:24", "url": "https://files.pythonhosted.org/packages/bd/b7/377abf234959f858797632e569a493006fe1ec7f4bed3a4139ab5a777a21/es_client-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "54d618073389e5caf4ebac897383fb82", "sha256": "aa399a0b0230029fa4d6454efd81bd38ff9e377f7bd36512335a1f038a0061c2" }, "downloads": -1, "filename": "es_client-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54d618073389e5caf4ebac897383fb82", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11385, "upload_time": "2018-04-19T16:41:57", "url": "https://files.pythonhosted.org/packages/ce/3f/66993fae1f675073a2bdcf540519dd34657b22c91b96a1c75dcc5ad0d036/es_client-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f2d230726cd4c1c538afdd53dad82db", "sha256": "810e4bfb3731a1e0a28db46baf0c6f145a1e5dd87d4b6bacbb3603e0083f5637" }, "downloads": -1, "filename": "es_client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "9f2d230726cd4c1c538afdd53dad82db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17484, "upload_time": "2018-04-19T16:25:12", "url": "https://files.pythonhosted.org/packages/34/43/8b48347d83e8a8499bb76c447027b6df7c6c1fe37530c945bfd0b8cb8680/es_client-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "f94c02cc4409e4ee0d76205f2071000d", "sha256": "604cf350675f0e4a06c85c371055e5f3c4243b404f61f80592fe3f623c6a88fe" }, "downloads": -1, "filename": "es_client-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f94c02cc4409e4ee0d76205f2071000d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11408, "upload_time": "2018-04-19T20:37:31", "url": "https://files.pythonhosted.org/packages/5c/04/987393ba4cbb3afcc8ff0d115178c833e4acfb25550ce08ac47bbb071428/es_client-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "990b2cd4a941a515aa9620b580205043", "sha256": "c2ac52222407149aca19adf4d94c6e2a65f618885b728486b5e1d92319d1031d" }, "downloads": -1, "filename": "es_client-1.1.1.tar.gz", "has_sig": false, "md5_digest": "990b2cd4a941a515aa9620b580205043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17614, "upload_time": "2018-05-07T15:07:36", "url": "https://files.pythonhosted.org/packages/72/89/50a23fcccd12fc57ce929eb1a8ede768319aae728de3237e576c51c41462/es_client-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f94c02cc4409e4ee0d76205f2071000d", "sha256": "604cf350675f0e4a06c85c371055e5f3c4243b404f61f80592fe3f623c6a88fe" }, "downloads": -1, "filename": "es_client-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f94c02cc4409e4ee0d76205f2071000d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11408, "upload_time": "2018-04-19T20:37:31", "url": "https://files.pythonhosted.org/packages/5c/04/987393ba4cbb3afcc8ff0d115178c833e4acfb25550ce08ac47bbb071428/es_client-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "990b2cd4a941a515aa9620b580205043", "sha256": "c2ac52222407149aca19adf4d94c6e2a65f618885b728486b5e1d92319d1031d" }, "downloads": -1, "filename": "es_client-1.1.1.tar.gz", "has_sig": false, "md5_digest": "990b2cd4a941a515aa9620b580205043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17614, "upload_time": "2018-05-07T15:07:36", "url": "https://files.pythonhosted.org/packages/72/89/50a23fcccd12fc57ce929eb1a8ede768319aae728de3237e576c51c41462/es_client-1.1.1.tar.gz" } ] }