{"id":21482446,"url":"https://github.com/jonhadfield/hostman","last_synced_at":"2025-07-15T13:32:50.125Z","repository":{"id":32385159,"uuid":"35961564","full_name":"jonhadfield/hostman","owner":"jonhadfield","description":"A hosts file manager","archived":false,"fork":false,"pushed_at":"2021-04-05T20:23:45.000Z","size":86,"stargazers_count":23,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T05:43:00.567Z","etag":null,"topics":["hosts","hostsfile","python","python-hosts"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonhadfield.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-20T16:55:57.000Z","updated_at":"2023-09-25T20:34:27.000Z","dependencies_parsed_at":"2022-09-12T01:40:52.247Z","dependency_job_id":null,"html_url":"https://github.com/jonhadfield/hostman","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fhostman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fhostman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fhostman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhadfield%2Fhostman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhadfield","download_url":"https://codeload.github.com/jonhadfield/hostman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226044892,"owners_count":17564915,"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":["hosts","hostsfile","python","python-hosts"],"created_at":"2024-11-23T12:33:23.187Z","updated_at":"2024-11-23T12:33:23.824Z","avatar_url":"https://github.com/jonhadfield.png","language":"Python","readme":"hostman\n========\n[![Build Status](https://api.travis-ci.org/jonhadfield/hostman.svg?branch=devel)](https://travis-ci.org/jonhadfield/hostman) [![Coverage Status](https://coveralls.io/repos/jonhadfield/hostman/badge.svg?branch=devel\u0026service=github)](https://coveralls.io/github/jonhadfield/hostman?branch=devel)\n\nA simple command line tool for managing your hosts file.\nAdd, remove or import entries from file or URLs.\n\nInstallation\n------------\n    pip install pyhostman\n\n\nUsage\n------------\n    hostman add [-fqbcvq] [--force] [--path=PATH]\n                ( [ENTRY ...] | [--input-file=FILE] | [--input-url=URL] )\n    hostman remove [-qbcvq] ([--address=\u003caddress\u003e] [--names=\u003cnames\u003e]) [--path=PATH]\n                 [--input-file=FILE] [--input-url=URL]\n    hostman --version\n\nOptions\n------------\n    -h --help                    show this help message and exit\n    --version                    show version and exit\n    -f --force                   first remove all existing entries that match\n    --address=ADDRESS            ipv6 or ipv4 address\n    --names=NAMES                host names\n    -q --quiet                   report only failures\n    -p --path=PATH               location of hosts file (attempts to detect default)\n    -i --input-file=FILE         file containing hosts to import\n    -u --input-url=URL           url of file containing hosts to import\n    -b --backup                  create a backup before each change\n    --exclude=VALUE              comma separated list of names or addresses\n                                 to exclude from operation [default: 127.0.0.1]\n    -c --count                   count entries added, replaced and removed\n    -v --verbose                 print verbose output\n\nExamples\n------------\nAdding a single entry\n\n    hostman add 1.2.3.4 example.com\n\nImporting a list of host entries by URL\n\n    hostman add --input-url https://dl.dropboxusercontent.com/u/167103/hosts\n\nRequirements\n------------\nTested on python 2.7, 3.5, 3.6, 3.7, pypy, and pypy3\n\n\nLicense\n-------\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fhostman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhadfield%2Fhostman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhadfield%2Fhostman/lists"}