{"id":22191284,"url":"https://github.com/dunderrrrrr/hostf","last_synced_at":"2025-03-24T20:42:40.561Z","repository":{"id":189505198,"uuid":"240086444","full_name":"dunderrrrrr/hostf","owner":"dunderrrrrr","description":"Manage /etc/hosts with Python3 faster than lightning :zap: :sparkles:","archived":false,"fork":false,"pushed_at":"2020-02-12T18:35:51.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T01:15:38.324Z","etag":null,"topics":["etchosts","hostf","hostname","hosts","hostsfile","python","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dunderrrrrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-12T18:35:18.000Z","updated_at":"2024-05-18T08:25:45.000Z","dependencies_parsed_at":"2023-08-20T14:54:22.519Z","dependency_job_id":null,"html_url":"https://github.com/dunderrrrrr/hostf","commit_stats":null,"previous_names":["dunderrrrrr/hostf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fhostf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fhostf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fhostf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fhostf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunderrrrrr","download_url":"https://codeload.github.com/dunderrrrrr/hostf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245351760,"owners_count":20601088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["etchosts","hostf","hostname","hosts","hostsfile","python","python3"],"created_at":"2024-12-02T12:15:17.205Z","updated_at":"2025-03-24T20:42:40.537Z","avatar_url":"https://github.com/dunderrrrrr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![hostf](/img/hostf.png?raw=true)  \n\nSometimes you need to manage your hosts file `/etc/hosts`.  \nSome do it on a daily basis.  \n\nThis Python script will do it for you faster than lightning :zap: :sparkles:\n\n## Installing\nClone and cd into dir.\n```sh\n$ git clone git@github.com:dunderrrrrr/hostf.git \u0026\u0026 cd hostf/\n```  \n\nAdd to `~/.bashrc`.\n```shell\nalias hostf='sudo /usr/bin/python3 /home/user/path/hostf/hostf.py'\n```\n\nReload shell or restart terminal.\n```\n$ source ~/.bashrc\n```\n\n## Usage\n### Add / delete / show records\n```sh\n$ hostf -a 10.1.1.50 example.com\n```\n```sh\n$ hostf -d 10.1.1.50\n```\n```sh\n$ hostf\n127.0.0.1   localhost\n10.1.1.5    test-serv\n10.10.1.7   example.com\n```\n\n## Help\n```sh\n$ hostf -h\nusage:\n[ADD] hostf -a \u003cip\u003e \u003chostname\u003e\n[DEL] hostf -d \u003cip\u003e\n\nhostf will manage /etc/hosts faster than lightning.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -a 10.1.1.5 test.com  Add to hosts.\n  -d 10.1.1.5           Delete from hosts.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunderrrrrr%2Fhostf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunderrrrrr%2Fhostf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunderrrrrr%2Fhostf/lists"}