{ "info": { "author": "Andrea Carmisciano", "author_email": "andrea.carmisciano@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# solrcli - Solr CLI\n\nSuper simple (and small) Command Line Interface to perform frequend actions upon Solr instance. \n\nSearch features are provided from [**pysolr lib**](https://github.com/django-haystack/pysolr/) by [**Django Haystack**](https://github.com/django-haystack).\n\n\n## Installation (not yet available)\n\n```bash\npip install solrcli\n```\n\n## Configuration\n\nSolrcli can take parameters in two ways:\n\n* via a config file\n* via command line\n\nUsing config file allows you to set up different environments. See example below `hosts.yml`:\n\n```\nproduction-server:\n host: solr-production.foo.com\n core: products\n sanity_checks:\n column_values_at_least: \n column: enabled\n\nstaging-server:\n host: solr-staging.foo.com\n core: products\n sanity_checks:\n column_values_at_least: \n column: enabled\n\n```\n\nYou can choose enviroment in the command line as:\n\n```bash\n(venv) $ python -m solrcli -c hosts.ini -i test-server reload\n```\n\nIf you prefer to provide params each time you can pass `--host` and `--core` as application options before command.\n\n\n## Usage\n\n### Generic options\n\nPrint help informations for main command with `python -m solrcli --help`. Use `--help` after the command to print specific options.\n\n```bash\nUsage: solrcli.py [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n --host TEXT Solr hostname with port\n --core TEXT Solr core\n -c, --config TEXT config file path\n -i, --instance TEXT remote instance from config file\n --help Show this message and exit.\n\nCommands:\n fullimport\n getconfig\n reload\n show-config\n```\n\n### Reloading\n\nInvoke core reload\n\n```bash\n(venv) $ python -m solrcli --host=my-solr-instance.com --core=core0 reload\n```\n\n### Configurations\n\nGet config from Solr instance passing feature from the list below:\n\n* dataimport\n\n```bash\n(venv) $ python -m solrcli --host=my-solr-instance.com --core=core0 getconfig --feature=dataimport\n```\n\n### Status\n\nGet core status. If you use `--waitfinish` the script will wait until `fullimport` finish.\n\nThe `--notify` allows you to receive an email with core counts.\n\n```bash\nUsage: solrcli.py status [OPTIONS]\n\nOptions:\n --waitfinish / --no-waitfinish Wait if data import is running\n --notify TEXT Comma separated list of e-mail to deliver\n result\n --help Show this message and exit.\n```\n\n\n### Full import\n\nInvoke core data import handler. \n```bash\nUsage: solrcli.py fullimport [OPTIONS]\n\nOptions:\n --sanitycheck / --no-sanitycheck\n Perform full-import only if sanity check\n succeded.\n --notify TEXT Comma separated list of e-mail to deliver\n result\n --help Show this message and exit.\n```\n\nThe `--notify` params allows you to receive an e-mail after data import will be completed.\n\nIf `--sanitycheck` is provided `fullimport` is called only if all sanity checks are passed. \nSanity checks to be perfomed can be defined in the settings YAML file in the instance like below:\n\n```yaml\ninstances:\n core-test:\n host: my-solr-instance.com\n core: core0\n sanity_checks:\n column_values_at_least: \n column: published\n```\n\n## TODO\n\n* authentication\n* deeper config inspection\n* focus results: perform a `/search` or similar and get back only interesting nodes\n* query using URL\n* v2 Api for Solr Cloud\n\n## Authors\n\n* [**Andrea Carmisciano**](https://github.com/acarmisc/)\n\n\n## License\n\nThis project is licensed under the GNU Affero General Public License v3.0 License - see the [LICENSE](LICENSE) file for details", "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/acarmisc/solrcli", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "solrcli", "package_url": "https://pypi.org/project/solrcli/", "platform": "", "project_url": "https://pypi.org/project/solrcli/", "project_urls": { "Homepage": "https://github.com/acarmisc/solrcli" }, "release_url": "https://pypi.org/project/solrcli/0.1.8/", "requires_dist": null, "requires_python": "", "summary": "A super simple Solr Cli", "version": "0.1.8" }, "last_serial": 5862431, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "47163e18c5d819d8d783b55e17b2c0bf", "sha256": "2991c7b166d9ecbe9cabc7d88f67e3f3f01c59c1a44eccfc2e197553a6fcb7e3" }, "downloads": -1, "filename": "solrcli-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "47163e18c5d819d8d783b55e17b2c0bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16313, "upload_time": "2019-09-15T12:44:57", "url": "https://files.pythonhosted.org/packages/32/5c/d06f5c0ce660ebec7e37575efc75680f5c35fd9cc92d526af52eddde494b/solrcli-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aad74601a0d746653371b6dadb5fbb47", "sha256": "c758be5f029ef6769cf451d23b18f1a5979b40423b91dcf7b80bfdb7362fc412" }, "downloads": -1, "filename": "solrcli-0.1.tar.gz", "has_sig": false, "md5_digest": "aad74601a0d746653371b6dadb5fbb47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5664, "upload_time": "2019-09-15T12:45:00", "url": "https://files.pythonhosted.org/packages/af/88/7fa877f9089f9f22a84cf760a4d4230930cdeffdc845d57aecd8254b6e88/solrcli-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1a70943ea184b814ba44ec03c70381f3", "sha256": "32a2b6534ced83a0046a9d778a710a22b40fa215fe02dfe470b0c65a9b39afe9" }, "downloads": -1, "filename": "solrcli-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1a70943ea184b814ba44ec03c70381f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5663, "upload_time": "2019-09-15T12:55:24", "url": "https://files.pythonhosted.org/packages/b4/83/824ebbe9b99c65486c6803cede263a6772553ec133b6c25af6c82b94e764/solrcli-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "799382f1edab9998741d6c5190fc78ae", "sha256": "2f182ea078ce91aefeaa5d55b8e80af8202a4f0136b22664ea421b42de0cdbcd" }, "downloads": -1, "filename": "solrcli-0.1.2.tar.gz", "has_sig": false, "md5_digest": "799382f1edab9998741d6c5190fc78ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5681, "upload_time": "2019-09-16T12:51:26", "url": "https://files.pythonhosted.org/packages/22/b2/ad8fe53ef6b299c235fca6ef39454608deeeccac46ba74a47b41400d3385/solrcli-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3084ad0a982127b29cef4e2a0671db3c", "sha256": "c8e3e7c79db09149e5f6960496f9861675403a128e86724cbd9fac4d88438add" }, "downloads": -1, "filename": "solrcli-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3084ad0a982127b29cef4e2a0671db3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5771, "upload_time": "2019-09-18T10:18:26", "url": "https://files.pythonhosted.org/packages/73/38/55777a0a82f23390abbe2e820d54b75e72b2f192cac346b0693761296c38/solrcli-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "809dc22dd59f4e731959b3478a3766d1", "sha256": "7f4711d0064d8fa923418a091850c37ac6847e06087b04353649e23f91e03541" }, "downloads": -1, "filename": "solrcli-0.1.4.tar.gz", "has_sig": false, "md5_digest": "809dc22dd59f4e731959b3478a3766d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5803, "upload_time": "2019-09-18T10:27:43", "url": "https://files.pythonhosted.org/packages/f8/a0/1a45c8e7502283351cfc735c641e7628eb35562bdb8f45df6d1f52c2e905/solrcli-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "7f90a8b61c64002b9be6ce321c2741db", "sha256": "ae6c4ddc895b9ddf9a5c596d2cfbd8633f0056b223c6be67dda2e393e0e9945b" }, "downloads": -1, "filename": "solrcli-0.1.5.tar.gz", "has_sig": false, "md5_digest": "7f90a8b61c64002b9be6ce321c2741db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5790, "upload_time": "2019-09-18T10:55:31", "url": "https://files.pythonhosted.org/packages/5e/bb/1e4889d59778fb0fa0317cc8d5313a4fed2d76ce123016af6c1892bbd710/solrcli-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "70d78b61ebb9afdc2b397d1bf8a97aab", "sha256": "4cb5de4be6ac7ebaf7e776c75020fa03bf17dcc8671aeb2c858fd29d48a242b3" }, "downloads": -1, "filename": "solrcli-0.1.6.tar.gz", "has_sig": false, "md5_digest": "70d78b61ebb9afdc2b397d1bf8a97aab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5812, "upload_time": "2019-09-18T13:37:53", "url": "https://files.pythonhosted.org/packages/e5/a7/d56e4ab561ca71e6593d81b11c007e1682b1d8b1fa37a78d2c98e685647d/solrcli-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "e0bdbe1fcc628f6dcff22e2764cef786", "sha256": "6962ac9d6f0f36f12d45e5aa706f58e6334919b55899c211ae2c0e72951941bd" }, "downloads": -1, "filename": "solrcli-0.1.7.tar.gz", "has_sig": false, "md5_digest": "e0bdbe1fcc628f6dcff22e2764cef786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5856, "upload_time": "2019-09-20T12:49:32", "url": "https://files.pythonhosted.org/packages/90/08/570e00e3fc7e483615972eecbef568c386548f3cd8064c810d2ebb69da6c/solrcli-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "f5def51587d6c304bc4a2d84a4b43df6", "sha256": "3982f6970219119b9b7d07fcd73ecb01be177497850970594a00f0a0f50bdba3" }, "downloads": -1, "filename": "solrcli-0.1.8.tar.gz", "has_sig": false, "md5_digest": "f5def51587d6c304bc4a2d84a4b43df6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5885, "upload_time": "2019-09-20T13:57:19", "url": "https://files.pythonhosted.org/packages/6a/75/95d3a402a11c28c43cfc5a65bbfff5f85470f2ec9bfc32bdfac9ae3671d8/solrcli-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f5def51587d6c304bc4a2d84a4b43df6", "sha256": "3982f6970219119b9b7d07fcd73ecb01be177497850970594a00f0a0f50bdba3" }, "downloads": -1, "filename": "solrcli-0.1.8.tar.gz", "has_sig": false, "md5_digest": "f5def51587d6c304bc4a2d84a4b43df6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5885, "upload_time": "2019-09-20T13:57:19", "url": "https://files.pythonhosted.org/packages/6a/75/95d3a402a11c28c43cfc5a65bbfff5f85470f2ec9bfc32bdfac9ae3671d8/solrcli-0.1.8.tar.gz" } ] }