{ "info": { "author": "pengmingqiang", "author_email": "rockypengchina@outlook.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# SHTools - some useful bash tools write in pure python.\n\n![image](https://img.shields.io/badge/made_in-china-ff2121.svg)\n[![image](https://img.shields.io/pypi/v/shtools.svg)](https://pypi.org/project/shtools/)\n[![image](https://img.shields.io/pypi/l/shtools.svg)](https://pypi.org/project/shtools/)\n\n## About\n\u7eafPython\u5b9e\u73b0\u7684\u4e00\u4e9bbash\u547d\u4ee4\u5de5\u5177\u96c6\u5408.\n\n## Requirements\n- Python3\n\n## Install\n\u901a\u8fc7pip\u547d\u4ee4\u5b89\u88c5\uff1a\n```shell\npip install shtools[ssh]\n```\n\u6216\u8005\u901a\u8fc7\u4e0b\u8f7d\u6e90\u7801\u5305\u6216clone\u4ee3\u7801\u81f3\u672c\u5730\uff0c\u7136\u540e\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a\n```shell\npython setup.py install\n```\n\n## cli command\n- curl: transfer a URL\n- mongo: mongodb cli\n- mysql: mysql cli\n- nc: concatenate and redirect sockets\n- ntpdate: set the date and time via NTP\n- ping: send ICMP ECHO_REQUEST to network hosts\n- psql: postgresql cli\n- rediscli: redis cli\n- scp: secure copy (remote file copy program)\n- bash: local shell command\n- ssh: OpenSSH SSH client (remote login program)\n\n## Example\n```python\nfrom shtools.bash.mysql import mysql\ncmd = mysql('-h 127.0.0.1 -P 3306 -u root -p ****** -D database -e \"SELECT * FROM table\"')\nresult = cmd.run()\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/meanstrong/shtools", "keywords": "", "license": "GPLv3", "maintainer": "pengmingqiang", "maintainer_email": "rockypengchina@outlook.com", "name": "shtools", "package_url": "https://pypi.org/project/shtools/", "platform": "any", "project_url": "https://pypi.org/project/shtools/", "project_urls": { "Homepage": "https://github.com/meanstrong/shtools" }, "release_url": "https://pypi.org/project/shtools/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "some useful bash tools write in python", "version": "2.0.0", "yanked": false, "yanked_reason": null }, "last_serial": 13729915, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "96605141418d2a36ade73847bef60d05", "sha256": "278701e7ac2a0ad58441fac652e62e542692e33652ec0a3ee52b71f6711cfeec" }, "downloads": -1, "filename": "shtools-1.0.10.zip", "has_sig": false, "md5_digest": "96605141418d2a36ade73847bef60d05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23240, "upload_time": "2021-03-19T03:01:14", "upload_time_iso_8601": "2021-03-19T03:01:14.936269Z", "url": "https://files.pythonhosted.org/packages/7f/11/c8e5aef49cfc537368be53387158eaf025d3a28bee8e9210f6e08c479056/shtools-1.0.10.zip", "yanked": false, "yanked_reason": null } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "a514f412e524c9c4c339897b1f1c6ac3", "sha256": "3838e7349cb339588f6d1527f0f5325f11d97066d69df09029510c42a383b620" }, "downloads": -1, "filename": "shtools-2.0.0.zip", "has_sig": false, "md5_digest": "a514f412e524c9c4c339897b1f1c6ac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23751, "upload_time": "2022-05-06T07:00:23", "upload_time_iso_8601": "2022-05-06T07:00:23.062380Z", "url": "https://files.pythonhosted.org/packages/60/90/554f48abfb3b60dbd6a966d7a5808b89436361b40fe19902b8f1ac9e78ba/shtools-2.0.0.zip", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a514f412e524c9c4c339897b1f1c6ac3", "sha256": "3838e7349cb339588f6d1527f0f5325f11d97066d69df09029510c42a383b620" }, "downloads": -1, "filename": "shtools-2.0.0.zip", "has_sig": false, "md5_digest": "a514f412e524c9c4c339897b1f1c6ac3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23751, "upload_time": "2022-05-06T07:00:23", "upload_time_iso_8601": "2022-05-06T07:00:23.062380Z", "url": "https://files.pythonhosted.org/packages/60/90/554f48abfb3b60dbd6a966d7a5808b89436361b40fe19902b8f1ac9e78ba/shtools-2.0.0.zip", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }