Skip to content

kman0/hosts

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages