A simple utility for managing hostnames
Project description
hosty - Console Utility for Managing Hosts File
hosty is a Python-based console utility designed to easily manage entries in the /etc/hosts file. The utility provides a user-friendly interface to add, delete, and list domain names directly from the terminal.
Features
- Add Domains: Quickly add new domains to the
/etc/hostsfile. - Delete Domains: Easily remove domains from the
/etc/hostsfile. - View Existing Domains: List all domains currently in the
/etc/hostsfile. - Interactive UI: Simple and intuitive terminal-based interface using
urwid.
Screenshots
Installation
From GitHub
To install hosty from the GitHub repository:
-
Clone the repository:
git clone https://github.com/CtrlPy/hosty.git
-
Navigate to the project directory:
cd hosty
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the utility:
sudo python3 hosty.py
From PyPI
To install hosty directly from PyPI:
-
Install via pip:
pip install hosty
-
Run the utility:
sudo hosty
Usage
Once the utility is installed, you can use it by running:
sudo hosty
- Q: Quit the utility.
- Tab: Switch focus between input and domain list.
- Enter: Add the entered domain to the
/etc/hostsfile. - Delete: Remove the selected domain from the
/etc/hostsfile.
Example
To add a new domain:
- Type the domain in the
add:field. - Press
Enterto add it to the list.
To delete a domain:
- Navigate to the domain in the list using the arrow keys.
- Press
Deleteto remove it.
Contributing
We welcome contributions to improve hosty. Please feel free to submit issues, pull requests, or suggest new features.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Future Plans
- AUR Package: We plan to make hosty available on the Arch User Repository (AUR) for easy installation on Arch Linux and its derivatives.
- Homebrew: We also aim to publish hosty on Homebrew for macOS users.
Contact
For any questions or suggestions, please reach out to .
hosty
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hosty-1.0.2.tar.gz.
File metadata
- Download URL: hosty-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8fdd6592f12dcd31dcba2fa01e987f3dbd7270b9d7b721b6fa6a6b4b2a15c21
|
|
| MD5 |
bc8e307ce57a5b49f98a66195a76a8cd
|
|
| BLAKE2b-256 |
48040b4222f42b50906a05dd70dc1ccfb31b6b607a072e819f282b9a19038cd6
|
File details
Details for the file hosty-1.0.2-py3-none-any.whl.
File metadata
- Download URL: hosty-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
969dd0d15a29754088cc30c5c58527dc7fc3e19ed72fa4efa6840b4b6dfd1782
|
|
| MD5 |
e86d47c41a466d5c8636cda5b3905541
|
|
| BLAKE2b-256 |
ada50bc053390be7fec6ae339ff73a50c2f815c734ad6e605b876d546d83f43c
|