Skip to main content

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/hosts file.
  • Delete Domains: Easily remove domains from the /etc/hosts file.
  • View Existing Domains: List all domains currently in the /etc/hosts file.
  • Interactive UI: Simple and intuitive terminal-based interface using urwid.

Screenshots

hos Interface

Installation

From GitHub

To install hosty from the GitHub repository:

  1. Clone the repository:

    git clone https://github.com/CtrlPy/hosty.git
    
  2. Navigate to the project directory:

    cd hosty
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Run the utility:

    sudo python3 hosty.py
    

From PyPI

To install hosty directly from PyPI:

  1. Install via pip:

    pip install hosty
    
  2. 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/hosts file.
  • Delete: Remove the selected domain from the /etc/hosts file.

Example

To add a new domain:

  1. Type the domain in the add: field.
  2. Press Enter to add it to the list.

To delete a domain:

  1. Navigate to the domain in the list using the arrow keys.
  2. Press Delete to 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hosty-1.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hosty-1.0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for hosty-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e8fdd6592f12dcd31dcba2fa01e987f3dbd7270b9d7b721b6fa6a6b4b2a15c21
MD5 bc8e307ce57a5b49f98a66195a76a8cd
BLAKE2b-256 48040b4222f42b50906a05dd70dc1ccfb31b6b607a072e819f282b9a19038cd6

See more details on using hashes here.

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

Hashes for hosty-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 969dd0d15a29754088cc30c5c58527dc7fc3e19ed72fa4efa6840b4b6dfd1782
MD5 e86d47c41a466d5c8636cda5b3905541
BLAKE2b-256 ada50bc053390be7fec6ae339ff73a50c2f815c734ad6e605b876d546d83f43c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page