{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking/2"},{"label":"Operating System","url":"https://skillfed.io/packages/category/system-operating-system"}],"enrichment":{"capability":"Manages hosts file entries programmatically\u2014add, remove, import, and query IP-to-hostname mappings without manual file editing.","skillfed_tags":["system-administration","network-configuration"],"use_cases":["Automate adding or removing hostname entries in CI/CD pipelines or deployment scripts.","Bulk import hosts from a remote URL or file to synchronize local DNS resolution.","Query the hosts file programmatically to check if a hostname or IP already exists before making changes.","Merge new hostname aliases with existing entries without overwriting the entire hosts file."],"what_it_does":"python-hosts is a library for programmatic manipulation of the system hosts file. It lets you create, add, remove, and query hostname-to-IP mappings without manually editing the file, and supports importing entries from files or URLs. The library has no runtime dependencies and works as a pure Python module.\n\nIt's designed for system administrators and automation scripts that need to manage network hostname resolution at the OS level. You instantiate a Hosts object pointing to a hosts file, manipulate entries using HostsEntry objects, and write changes back to disk. The package remains compatible with Python 2.7 and modern Python 3 releases, though it has not seen a release in over a year.","worth_installing":"Yes, if you need programmatic hosts file management. The package is stable (Production/Stable status), has no dependencies, and carries a permissive MIT license. However, the aging maintenance status (416 days since last release) means you should verify compatibility with your Python version before relying on it for critical automation."},"id":"python-hosts","links":{"html":"https://skillfed.io/packages/python-hosts","md":"https://skillfed.io/packages/python-hosts.md","pypi":"https://pypi.org/project/python-hosts/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-24","license_spdx":null,"license_treatment":"permissive","name":"python-hosts","python_support":"unspecified","summary":"A hosts file manager library written in python"},"popularity":{"monthly_downloads":184078,"position":10046,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.2"}
