Skip to main content

A simple CLI tool to ping HTTP servers

Project description

🌐 hping - Ping but for HTTP

Release Python Version PyPI Version License Code Style

PyPI Downloads GitHub Stars GitHub Forks GitHub Issues GitHub Pull Requests

hping is a command-line tool that works like ping, but instead of sending ICMP packets, it repeatedly makes HTTP GET requests to check if a website is available.

✨ Key Features

  • 🔄 Continuous monitoring - Send periodic HTTP requests like traditional ping
  • 📊 Real-time statistics - View response times, success rates, and packet loss
  • Lightweight & fast - Minimal resource usage with quick response times
  • 🎯 Simple interface - Familiar ping-like command-line experience
  • 🐍 Python 3.10+ - Modern Python with type hints and clean code

📦 Installation

Requirements

  • Python 3.10 or higher
  • Internet connection

Install from PyPI

pip install hping

Install from Source

git clone https://github.com/lukas-holzner/hping.git
cd hping
poetry install

🚀 Usage

To use hping, simply run it from the command line followed by the URL you want to ping:

hping https://www.example.com

⚙️ Options

  • -i, --interval: Interval in seconds between requests (default is 1.0 seconds).
  • -c, --count: Number of pings to send. (default is none)

💡 Example

hping https://www.example.com -i 2

This will send HTTP GET requests to https://www.example.com every 2 seconds.

📋 About

hping is a simple tool for monitoring the availability and responsiveness of websites by sending periodic HTTP GET requests.

🛠️ Development

For development setup with devcontainer support and pre-commit hooks, see CONTRIBUTING.md.

Quick Development Setup

# Using devcontainer (recommended)
# Open in VS Code and select "Reopen in Container"

# Or manual setup
poetry install
pre-commit install

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

📄 License

This project is licensed under the MIT License - see the MIT License for details.

🌟 Support

If you find this tool useful, please consider:

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

hping-0.7.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

hping-0.7.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file hping-0.7.0.tar.gz.

File metadata

  • Download URL: hping-0.7.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hping-0.7.0.tar.gz
Algorithm Hash digest
SHA256 630a9bdf7061aab56c460fce21af145c3f50680ca6cd81c341b2f26c83b14042
MD5 3954ccdfdb1ebf6b6137ac075941713a
BLAKE2b-256 c68e65c6dd0ce914ff9a3df1e43e47c606be7b21fce4c2838054ac3ea692723d

See more details on using hashes here.

File details

Details for the file hping-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: hping-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hping-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dac105b2b82b0c3aedf6bb123351b0792fa8557afa49139801e397c3ed6c7d3
MD5 10a7c8ae23127d86c7ba9e96cb8808ef
BLAKE2b-256 33f80eaf0de0b2bfbd65d7955dbc07954d438bba6330f34a1540286a952dc2b1

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