Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hosts Build Status

Python wrapper to manage hosts file. Supports python 3.2, 3.3 and 3.4.

Usage:

>>> from hosts import Hosts
>>> hosts_obj = Hosts() # load hosts file automatically for windows and linux
>>> hosts_obj = Hosts(hosts_file='/ect/hosts') # point to specific hosts file

Save:

>>> hosts_obj.save()    # writes data back to hosts file

Changelog:

0.1 - Reads, removes comments and writes hosts file

About

Manage hosts file

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages