{ "info": { "author": "kwp", "author_email": "i@emmm.wtf", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "===========\nServer-cli\n===========\n|License: MIT| |Badge|\n\n.. |License: MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg\n :target: https://opensource.org/licenses/MIT\n\n.. |Badge| image:: https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg?style=flat-square\n :target: https://996.icu/#/en_US\n\n\nA server management tool which helps you memorize ssh command\n\n\n\nInstallation:\n==============\n::\n\n $ pip install server-cli\n\nUsage:\n==============\n\nType 'sss' to entry interaction interface.\n\nAvailable subcommands:\n-----------------------\n\n- ls [list all servers]\n\n- add [add a new server]\n\n- ping [list all server delays in real time (run under root)]\n\n- help\n\n- del [delete a server from database by id]\n\n- ssh [connect a server via ssh]\n\n- tag [list all servers contained given tag name]\n\n- modify [modify attributes of specified server]\n\n\nExample:\n=========\n\ndefault\n--------\nList all of services and wait for the specific server id::\n\n $ sss\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n | id | name | user | host | port | tags | description |\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n | 1 | \u4e9a\u9a6c\u900aaws | ubuntu | 0.0.0.0 | 22 | shadowsocks,telegramBot,MTpoto | \u52a0\u5229\u798f\u5c3c\u4e9a\u673a\u623f |\n | 2 | \u963f\u91cc\u4e91 | root | 0.0.0.0 | 22 | Wechat,shadowsocks | \u963f\u91cc\u4e91 \u6bd5\u4e1a\u5c31\u5230\u671f |\n | 3 | \u817e\u8baf\u4e911\u53f7 | ubuntu | 0.0.0.0 | 22 | Blog,huginn | |\n | 4 | \u817e\u8baf\u4e913\u53f7 | kwp | 0.0.0.0 | 22 | script | |\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n id >\n # and enter id you selected\n\nlist\n-----\nList all of services::\n\n $ sss ls\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n | id | name | user | host | port | tags | description |\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n | 1 | \u4e9a\u9a6c\u900aaws | ubuntu | 0.0.0.0 | 22 | shadowsocks,telegramBot,MTpoto | \u52a0\u5229\u798f\u5c3c\u4e9a\u673a\u623f |\n | 2 | \u963f\u91cc\u4e91 | root | 0.0.0.0 | 22 | Wechat,shadowsocks | \u963f\u91cc\u4e91 \u6bd5\u4e1a\u5c31\u5230\u671f |\n | 3 | \u817e\u8baf\u4e911\u53f7 | ubuntu | 0.0.0.0 | 22 | Blog,huginn | |\n | 4 | \u817e\u8baf\u4e913\u53f7 | kwp | 0.0.0.0 | 22 | script | |\n +----+-----------+--------+-----------------+------+--------------------------------+-------------------+\n\n\nping\n-----\nList all server delays in real time (run under **root**)::\n\n $ sss ping\n +----+-----------+-----------------+--------------------------------+-------------------+-----------+\n | id | name | host | tags | description | delay(ms) |\n +----+-----------+-----------------+--------------------------------+-------------------+-----------+\n | 1 | \u4e9a\u9a6c\u900aaws | 0.0.0.0 | shadowsocks,telegramBot,MTpoto | \u52a0\u5229\u798f\u5c3c\u4e9a\u673a\u623f | 310 |\n | 2 | \u963f\u91cc\u4e91 | 0.0.0.0 | Wechat,shadowsocks | \u963f\u91cc\u4e91 \u6bd5\u4e1a\u5c31\u5230\u671f | 45 |\n | 3 | \u817e\u8baf\u4e911\u53f7 | 0.0.0.0 | Blog,huginn | | 30 |\n | 5 | \u817e\u8baf\u4e913\u53f7 | 0.0.0.0 | script | | 36 |\n +----+-----------+-----------------+--------------------------------+-------------------+-----------+\n\nadd\n----\nAdd a new server::\n\n $ sss add\n name: Test\n user: root\n host: 0.0.0.0\n port(default: 22):\n key file path(None if use password): /path/to/your/key\n tags (use ',' to split): test,local\n description: this is a test\n\n Successfully added!\n\n\ndelete\n-------\nDelete a server with the specified ::\n\n $ sss del 6\n\n Successfully deleted!\n\n\ntag\n----\nFilter out servers that contain the given ::\n\n $ sss tag shadowsocks\n +----+-----------+--------+----------------+------+--------------------------------+-------------------+\n | id | name | user | host | port | tags | description |\n +----+-----------+--------+----------------+------+--------------------------------+-------------------+\n | 1 | \u4e9a\u9a6c\u900aaws | ubuntu | 0.0.0.0 | 22 | shadowsocks,telegramBot,MTpoto | \u52a0\u5229\u798f\u5c3c\u4e9a\u673a\u623f |\n | 2 | \u963f\u91cc\u4e91 | root | 0.0.0.0 | 22 | Wechat,shadowsocks | \u963f\u91cc\u4e91 \u6bd5\u4e1a\u5c31\u5230\u671f |\n +----+-----------+--------+----------------+------+--------------------------------+-------------------+\n\nmodify\n-------\nModify a server with the specified ::\n\n $ sss modify 1\n name('\u4e9a\u9a6c\u900aaws'):\n user('ubuntu'):\n host('0.0.0.0'):\n port(22):\n key file path('/path/to/your/key', enter '-' if use password):\n tags([shadowsocks,telegramBot,MTpoto], use ',' to split):\n description('\u52a0\u5229\u798f\u5c3c\u4e9a\u673a\u623f'):\n\nTodo:\n==============\n- [x] ping all servers\n- [ ] fill password automatically\n- [ ] supports Windows\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yjxkwp/server-cli", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "server-cli", "package_url": "https://pypi.org/project/server-cli/", "platform": "", "project_url": "https://pypi.org/project/server-cli/", "project_urls": { "Homepage": "https://github.com/yjxkwp/server-cli" }, "release_url": "https://pypi.org/project/server-cli/1.0.3/", "requires_dist": [ "PrettyTable", "ping3" ], "requires_python": ">=3.5, <4", "summary": "A server management tool which helps you memorize ssh command", "version": "1.0.3" }, "last_serial": 5198829, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "5dcab8ca53bdadcb6a866efab05d2d88", "sha256": "b42a5ad738ef6ed3d535b088961c8398aef31840ab223f78cece689d059f4653" }, "downloads": -1, "filename": "server_cli-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5dcab8ca53bdadcb6a866efab05d2d88", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3710, "upload_time": "2019-04-27T17:14:03", "url": "https://files.pythonhosted.org/packages/f4/b2/813a9ad9850df2c39811ebe945d069bf40920cab077e5edd593bb8054c53/server_cli-0.0.2-py2.py3-none-any.whl" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bb63d9aa5bc1297a6f83044e39fd9fb9", "sha256": "ab966b36f5cf2fd8bf3ed7fa0710cd35e93c40f8e678cb866dfaa80cc262e4f8" }, "downloads": -1, "filename": "server_cli-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bb63d9aa5bc1297a6f83044e39fd9fb9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3711, "upload_time": "2019-04-27T17:18:08", "url": "https://files.pythonhosted.org/packages/52/69/ff7380639e26ab070f7cf31b036cb72d86bad7969a4bc16c9f8bb353512b/server_cli-0.0.3-py2.py3-none-any.whl" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "bca0d9293f06c0f4785ffe090649a6c2", "sha256": "e40687c3444c1a1d20d130e9a62f75de230b6407ed22004d176958293b53c984" }, "downloads": -1, "filename": "server_cli-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bca0d9293f06c0f4785ffe090649a6c2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3736, "upload_time": "2019-04-27T17:26:27", "url": "https://files.pythonhosted.org/packages/d0/16/75509d9d2018ce33dbb29f8a1bdca002c9e2c8f0bfe64d425bffeefd0fba/server_cli-0.0.5-py2.py3-none-any.whl" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "40c3c08a0951a8786a01182969c0a010", "sha256": "9a092e7e7e9837ddf3163fdaf4e9e2fb412c920580e3deb966965190a21639b8" }, "downloads": -1, "filename": "server_cli-0.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40c3c08a0951a8786a01182969c0a010", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3739, "upload_time": "2019-04-27T17:34:54", "url": "https://files.pythonhosted.org/packages/1d/f0/4b9c72c881cd524de2a27ac60da805f88ac75ec5cb677654530ddd5fd22c/server_cli-0.0.6-py2.py3-none-any.whl" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "2bcc883020b4706645d837926bf6d98c", "sha256": "74e4fbeee0f8d8c04cee7c631959cde6b04fe820986b9d06ca47725e1f47a65a" }, "downloads": -1, "filename": "server_cli-0.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2bcc883020b4706645d837926bf6d98c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3759, "upload_time": "2019-04-27T17:38:12", "url": "https://files.pythonhosted.org/packages/54/74/01f7f6cf18095f1bf36f6630fd43b1d19e0ab42a1d5594dfdcd4faadaaa9/server_cli-0.0.7-py2.py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "91aac4757e432b4df1bb3202840a0150", "sha256": "fd2d94a6f6d1cc8be04fef338a8b82c11ae0be52ce64a1944ed2832e6765b222" }, "downloads": -1, "filename": "server_cli-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "91aac4757e432b4df1bb3202840a0150", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3767, "upload_time": "2019-04-27T18:04:47", "url": "https://files.pythonhosted.org/packages/46/cb/b74467be53aac5294bf59edced4191b3157728cf5c555bc7cc8955b705eb/server_cli-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "217c4c001c76e8eb205d1c2fd85358a6", "sha256": "7e73ce863fddfa7bb36591db8f368d1a9ee2fab58537aebd7d3784d98143249a" }, "downloads": -1, "filename": "server_cli-1.0.0-py3.6.egg", "has_sig": false, "md5_digest": "217c4c001c76e8eb205d1c2fd85358a6", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 7380, "upload_time": "2019-04-28T05:02:55", "url": "https://files.pythonhosted.org/packages/b9/fb/6e5a87b4cead91f07a1e2ca94e5667ac308bcb23e20ae5dfd24be8fa6aaf/server_cli-1.0.0-py3.6.egg" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8d71a79d8f2adc2f187483a0f56e87d9", "sha256": "f623f8bc3ea789a6fba3ffb95245c237fd304cdef7f29ec1b483729197161ffe" }, "downloads": -1, "filename": "server_cli-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8d71a79d8f2adc2f187483a0f56e87d9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4579, "upload_time": "2019-04-28T05:02:52", "url": "https://files.pythonhosted.org/packages/89/e3/da0cf3566f183259a9ff2217d70e8b5e890d438d1f5e9307cd8fcb93665d/server_cli-1.0.1-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "71190a3cf5402aa13fd9b40bc1a26e26", "sha256": "84740c0a20a8fee6c0135f9879b496336cb60654cbc6f78b314b86fb74b1488e" }, "downloads": -1, "filename": "server_cli-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "71190a3cf5402aa13fd9b40bc1a26e26", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5533, "upload_time": "2019-04-28T05:07:04", "url": "https://files.pythonhosted.org/packages/ce/81/9456fe290037b952b913f4688aaed2e754d922b3ec7834367a6ec02355b3/server_cli-1.0.2-py2.py3-none-any.whl" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6b76ea82bf87f7dcc1e8451730076a5e", "sha256": "b1e6ccc0901d3140f2128e69ede56919195761f4211a42ba81666ee295216ec6" }, "downloads": -1, "filename": "server_cli-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b76ea82bf87f7dcc1e8451730076a5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5, <4", "size": 6335, "upload_time": "2019-04-28T07:16:08", "url": "https://files.pythonhosted.org/packages/80/19/44d9b7114585b5a1103ac451fa82862d7c61b3267fc0b8a6770c93f4527a/server_cli-1.0.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b76ea82bf87f7dcc1e8451730076a5e", "sha256": "b1e6ccc0901d3140f2128e69ede56919195761f4211a42ba81666ee295216ec6" }, "downloads": -1, "filename": "server_cli-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b76ea82bf87f7dcc1e8451730076a5e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5, <4", "size": 6335, "upload_time": "2019-04-28T07:16:08", "url": "https://files.pythonhosted.org/packages/80/19/44d9b7114585b5a1103ac451fa82862d7c61b3267fc0b8a6770c93f4527a/server_cli-1.0.3-py2.py3-none-any.whl" } ] }