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
Metadata
Release files for hosty 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hosty-1.0.2.tar.gz | 2.4 kB | Without provenance | Details for hosty-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hosty-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for hosty-1.0.2-py3-none-any.whl |
Total release size: 4.8 kB
Release files / hosty-1.0.2.tar.gz
| Download URL | hosty-1.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8fdd6592f12dcd31dcba2fa01e987f3dbd7270b9d7b721b6fa6a6b4b2a15c21
|
|
BLAKE2b-256 checksum How to use checksums |
48040b4222f42b50906a05dd70dc1ccfb31b6b607a072e819f282b9a19038cd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / hosty-1.0.2-py3-none-any.whl
| Download URL | hosty-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
969dd0d15a29754088cc30c5c58527dc7fc3e19ed72fa4efa6840b4b6dfd1782
|
|
BLAKE2b-256 checksum How to use checksums |
ada50bc053390be7fec6ae339ff73a50c2f815c734ad6e605b876d546d83f43c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Security for hosty 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.