Skip to main content

A simple utility to kill processes running on a specified port

Project description

kill-this-port

kill-this-port is a Python utility to quickly identify and kill processes running on a specified port. It is ideal for developers managing networked applications who often encounter port conflicts.

Features

  • Check Port Usage: View which processes are using a specific port.
  • Kill Processes: Safely terminate processes occupying a port.
  • Force Kill: Use a forceful approach to stop stubborn processes.

Installation

Install the utility using pip:

pip install kill-this-port

Usage

  1. Check Port Usage:

    checkport [port]
    

    Example:

    checkport 8000
    
  2. Kill Process by Port:

    killport [port]
    

    Example:

    killport 8000
    
  3. Force Kill Process by Port:

    killport --force [port]
    

    Example:

    killport --f 8000
    

Example

To check port 3000 usage:

checkport 3000

To kill the process using port 3000:

killport 3000

To forcefully kill the process:

killport --force 3000

Author

Aaditya Kanjolia

GitHub: aadityakanjolia4

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

kill_this_port-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

kill_this_port-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file kill_this_port-1.0.1.tar.gz.

File metadata

  • Download URL: kill_this_port-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for kill_this_port-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3712855c83c1a58827a3bab50e17b6a9f9707d530efe58b440ee6df18fd1bddf
MD5 baa1ad204ec6a60de0a2f3c17dddc2ca
BLAKE2b-256 43bfa184ce54f2f047692161ca8e66a29666fd1f731e7e21a1ebdb46d9980897

See more details on using hashes here.

File details

Details for the file kill_this_port-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: kill_this_port-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for kill_this_port-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9baa1d79d4ac627fe723f731d0d3bc1f47fe6c3481c7de674889b1a37fd12b70
MD5 ea8d197287aba76f7c42ee39a8d398b4
BLAKE2b-256 d9f895154abe55f9e7995b5e2a67738f41d16d195c6b0515302b01f9dcff8035

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