{ "info": { "author": "Sohel Tarir", "author_email": "sohel.tarir@aasaanjobs.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "# Aasaanjobs Elasticsearch SDK\nLibrary to handle elasticsearch related transactions in Python (for internal usage in Aasaanjobs)\n\n## Requirements\n\n- Python 3.5 and greater\n- Elasticsearch Python\n\n## Installation\n\nInstall using `pip`\n```\npip install ajelastic\n```\n\n## Configuration\n\nThe AJ Elastic library reads configurations from module path specified in the environment\nvariable `AJELASTIC_SETTINGS_MODULE` if its a standalone python project, or the \n`DJANGO_SETTINGS_MODULE` environment variable if its a Django project.\n```\nexport AJELASTIC_SETTINGS_MODULE=tests.settings\n```\n\n#### Example\n\nBelow is an example settings module that can be consumed by the library\n```python\n# Mandatory Settings\n\n# Elasticsearch host and port\nES_HOST = \"http://localhost:9200\"\n# The environment suffix that will be added in the Elasticsearch index names\nES_ENV = \"development\" \n\n# Optional Settings\n\n# List of Elasticsearch indices\nES_INDICES = {\n \"User\": {\n \"name\": \"users\", # The index name prefix\n \"doc_type\": \"user\", # Elastic document type\n \"data_functions\": { \n \"single\": \"tests.data:get_user\", # Function to fetch a user; should accept a single ID argument\n \"multi\": \"tests.data:list_users\" # Function to fetch list of users; should accept two arguments; limit and offset\n },\n \"mapping_path\": \"tests/user_mapping.json\" # Path to the JSON mapping of the document structure\n }\n}\n```\n\n## Commands to Sync Data with Elasticsearch\n\nThis library provides the following command line scripts to synchronize/initialize data\n\n#### `aj-es-reindex`\nThis command will reindex the documents from scratch fetching data from the function defined in the `data_functions.multi`\nsettings of the entity (i.e., withing the `ES_INDICES` settings).\n\nFor eg, the below command will reindex the User entity, fetching data from the `list_users` function (as specified in the settings)\nwith a batch size of 100, i.e., in a single request 100 users will be index to elasticsearch.\n```\naj-es-reindex User 100\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aasaanjobs/ajelastic-sdk", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ajelastic", "package_url": "https://pypi.org/project/ajelastic/", "platform": "", "project_url": "https://pypi.org/project/ajelastic/", "project_urls": { "Homepage": "https://github.com/aasaanjobs/ajelastic-sdk" }, "release_url": "https://pypi.org/project/ajelastic/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Python - Elasticsearch Integration (for Aasaanjobs Internal Usage)", "version": "1.0.2" }, "last_serial": 4020367, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8094a5b971a3d28f65b4c73c9bee6832", "sha256": "4f39dddb8edbac3cd1d5baa478024099d62ad42247c4310e150762cf6160b384" }, "downloads": -1, "filename": "ajelastic-0.1.tar.gz", "has_sig": false, "md5_digest": "8094a5b971a3d28f65b4c73c9bee6832", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3813, "upload_time": "2018-06-29T12:48:49", "url": "https://files.pythonhosted.org/packages/7e/2d/4143931449b98ae7fc5d4343c0ad92c84cce14d429e73b70eaafa5cf1d6b/ajelastic-0.1.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "938a7d7472708d81cbd3811698396c56", "sha256": "eca6da5b5a74dc79bea53bba3f478f6a63d69f9fe09cf8278df6b17ed397d4a8" }, "downloads": -1, "filename": "ajelastic-1.0.1.tar.gz", "has_sig": false, "md5_digest": "938a7d7472708d81cbd3811698396c56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7412, "upload_time": "2018-07-01T14:33:43", "url": "https://files.pythonhosted.org/packages/f4/29/462b7f50bc30ea98ab4bcd1a3b2954d16a63fd93d17041ebf5a4d68e342a/ajelastic-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "45c6eb1e8e47dafb2a140093a3ff18e9", "sha256": "360bbe40419c4f2d417dfcf178b67d88f140610c5234882e7693b86366c5ed0e" }, "downloads": -1, "filename": "ajelastic-1.0.2.tar.gz", "has_sig": false, "md5_digest": "45c6eb1e8e47dafb2a140093a3ff18e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7413, "upload_time": "2018-07-01T14:47:01", "url": "https://files.pythonhosted.org/packages/47/c4/9549fcc6c2c7d13ef69d2f701c62161e36ba98dd34dfa4976ae0a178eb1d/ajelastic-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45c6eb1e8e47dafb2a140093a3ff18e9", "sha256": "360bbe40419c4f2d417dfcf178b67d88f140610c5234882e7693b86366c5ed0e" }, "downloads": -1, "filename": "ajelastic-1.0.2.tar.gz", "has_sig": false, "md5_digest": "45c6eb1e8e47dafb2a140093a3ff18e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7413, "upload_time": "2018-07-01T14:47:01", "url": "https://files.pythonhosted.org/packages/47/c4/9549fcc6c2c7d13ef69d2f701c62161e36ba98dd34dfa4976ae0a178eb1d/ajelastic-1.0.2.tar.gz" } ] }