{ "info": { "author": "lichun", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Programming Language :: Python" ], "description": "hostsed -- A tiny hosts file command line edit tool\n===================================================\n\nhostsed is a simple python tool for editing hosts file(default\n/etc/hosts), you can add or delete a DNS entry via command line\nshell(e.x. bash). Editing hosts file with hostsed would be a more\nidemponent command line experience, i.e., add/del the same record won't\nresult duplicated or missing entries in the hosts file. hostsed will\ncheck the validity ip address for both IPV4 and IPV6.\n\nInstall\n-------\n\nYou may install hostsed via pip. Python3 is preferred:\n\n::\n\n sudo pip3 install hostsed\n\nOr on system default pip command:\n\n::\n\n sudo pip install hostsed\n\nUsage\n-----\n\nDisplay the hosts file content\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n sudo hostsed\n # specify a location other than /etc/hosts\n hostsed --file hosts.example\n\nAdd an entry\n~~~~~~~~~~~~\n\n::\n\n sudo hostsed add ...\n\nExample:\n\n::\n\n sudo hostsed add 192.168.1.1 gateway\n sudo hostsed add 172.17.0.5 mongo-store-1 mysql-02\n hostsed --file hosts.exmaple add 127.0.0.1 valarmorghulis.io\n\nDelete an entry\n~~~~~~~~~~~~~~~\n\nrm/delete/remove are all alias for del:\n\n::\n\n sudo hostsed del \n\nExample:\n\n::\n\n sudo hostsed remove 192.168.1.1 gateway\n hostsed --file rm ::1 localhost\n\nGet the ip address of a docker container\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n sudo hostsed docker \n\nAcknowledgement\n---------------\n\nThanks for @noahfx provide some awesome improve for hostsed.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/socrateslee/hostsed", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "hostsed", "package_url": "https://pypi.org/project/hostsed/", "platform": "", "project_url": "https://pypi.org/project/hostsed/", "project_urls": { "Homepage": "https://github.com/socrateslee/hostsed" }, "release_url": "https://pypi.org/project/hostsed/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.3.0" }, "last_serial": 5430278, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "acd864429e946208c5065add4e4631bf", "sha256": "acbe9d775fc901c441954488c0fe24496f9a629ec4928798bc907745542d32bc" }, "downloads": -1, "filename": "hostsed-0.1.0.tar.gz", "has_sig": false, "md5_digest": "acd864429e946208c5065add4e4631bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1925, "upload_time": "2016-06-08T03:10:41", "url": "https://files.pythonhosted.org/packages/ae/c6/b3840ffddc731c38b4b2e6e43a67ead290bb39f22b33fe82f8178791365a/hostsed-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8c45be196d9d83f61cbc69cc4de8dad4", "sha256": "8aaf84c1e5e75106e0d8e4f393fae60ab280e9c5a6590f3d89860e3f0734c753" }, "downloads": -1, "filename": "hostsed-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8c45be196d9d83f61cbc69cc4de8dad4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1947, "upload_time": "2016-06-12T15:29:53", "url": "https://files.pythonhosted.org/packages/2b/82/491e0442956c78e1300c4c715ddfb059453914225bf5f0ea3bc695661aaa/hostsed-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "09dc5cbe9bc0730eb03db90867ccaab2", "sha256": "5d118ac11db1805df40a3f72446dd61f99b7c5243b83c4cf18c3481e47ff15d9" }, "downloads": -1, "filename": "hostsed-0.1.3.tar.gz", "has_sig": false, "md5_digest": "09dc5cbe9bc0730eb03db90867ccaab2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2308, "upload_time": "2016-09-17T13:41:01", "url": "https://files.pythonhosted.org/packages/b8/b9/5a7a2a8f713589141ab36e1baf60f9c283c2fe43a781292d2fa6036f4886/hostsed-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "aceec6902a44933dd78935b7c17f8208", "sha256": "ac2d8e139d1de7abc197f339120d19cd37e0eabc46d28f4cc837ae842954a04d" }, "downloads": -1, "filename": "hostsed-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "aceec6902a44933dd78935b7c17f8208", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4210, "upload_time": "2018-04-14T01:49:31", "url": "https://files.pythonhosted.org/packages/12/34/a5255387fbbf8e930752b0e29b1ffe40e848a82975c7a0d37c849be7e3bd/hostsed-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "14c39032f252276b437fbf32a06d5c34", "sha256": "926d644b4a8b0a4b778ef0ec733dc35df030d7d3df4217f637e648356947d19d" }, "downloads": -1, "filename": "hostsed-0.2.0.tar.gz", "has_sig": false, "md5_digest": "14c39032f252276b437fbf32a06d5c34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2541, "upload_time": "2018-04-14T01:49:28", "url": "https://files.pythonhosted.org/packages/b2/63/2d9f0c2b362898e268b8ccd23237a7fcf807247784de66c6f12da2b05361/hostsed-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "8a1ee91857c09b03dff6cd884ffa1c62", "sha256": "10e10612a5346c79e6dbb20945debe5f59e5e7a4fb82023592ffb5ba3820435f" }, "downloads": -1, "filename": "hostsed-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8a1ee91857c09b03dff6cd884ffa1c62", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 4985, "upload_time": "2019-06-21T11:09:38", "url": "https://files.pythonhosted.org/packages/ea/54/585b1d50011720b475d9928bf8f586419524a920f9c78a0a132e93bdfb25/hostsed-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf0731dd4c9503466ea41bc59c017fe2", "sha256": "318d0edd67e63ab81d4a733ecf7128fa6a80be9bd391478a819b928059f06baa" }, "downloads": -1, "filename": "hostsed-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cf0731dd4c9503466ea41bc59c017fe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3733, "upload_time": "2019-06-21T11:09:25", "url": "https://files.pythonhosted.org/packages/7f/0a/b6a519d0e13872a70cd12fb6691d2849fb34faf0928b360d06c00a886f28/hostsed-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a1ee91857c09b03dff6cd884ffa1c62", "sha256": "10e10612a5346c79e6dbb20945debe5f59e5e7a4fb82023592ffb5ba3820435f" }, "downloads": -1, "filename": "hostsed-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8a1ee91857c09b03dff6cd884ffa1c62", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 4985, "upload_time": "2019-06-21T11:09:38", "url": "https://files.pythonhosted.org/packages/ea/54/585b1d50011720b475d9928bf8f586419524a920f9c78a0a132e93bdfb25/hostsed-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf0731dd4c9503466ea41bc59c017fe2", "sha256": "318d0edd67e63ab81d4a733ecf7128fa6a80be9bd391478a819b928059f06baa" }, "downloads": -1, "filename": "hostsed-0.3.0.tar.gz", "has_sig": false, "md5_digest": "cf0731dd4c9503466ea41bc59c017fe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3733, "upload_time": "2019-06-21T11:09:25", "url": "https://files.pythonhosted.org/packages/7f/0a/b6a519d0e13872a70cd12fb6691d2849fb34faf0928b360d06c00a886f28/hostsed-0.3.0.tar.gz" } ] }