Skip to main content

A Minimal Port & Process Inspector

Project description

Peeky: CLI Tool

A Minimal Port & Process Inspector to inspect and manage network ports and processes.

Features

  • scan - List open ports with process information
  • conflicts - Detect conflicting processes on ports
  • stats - View network statistics and summary
  • kill - Kill processes by port or PID
  • clean - Clean up zombie or idle port-bound processes
  • whois - Look up information about IP addresses and domains
  • secure - Identify security risks in network configuration
  • export - Export connection data in JSON or text format
  • config - Configure settings and API keys

Installation

From PyPI (Recommended)

# Install from PyPI
pip install peeky

# Now you can use the 'peeky' command directly
peeky --help

From Source

# Clone the repository
git clone https://github.com/amogh-agrawal/peeky.git
cd peeky

# Install in development mode
pip install -e .

# Now you can use the 'peeky' command directly
peeky --help

Usage

Scan for Open Ports

# List all open ports
peeky scan

# Filter by port
peeky scan --port 8080

# Show only TCP connections
peeky scan --tcp

# Filter by process name
peeky scan --filter node

# Show command that started process
peeky scan --command

Detect Port Conflicts

# Find processes competing for the same ports
peeky conflicts

View Network Statistics

# Display summary statistics and top processes/ports
peeky stats

Kill Processes

# Kill by port number
peeky kill 8080

# Kill by PID
peeky kill 1234

# Force kill (SIGKILL)
peeky kill 8080 --force

# Skip confirmation prompts
peeky kill 1234 --yes

Clean Up Idle Processes

# Find and clean up idle/zombie processes
peeky clean

# Just list the processes without cleaning
peeky clean --list

# Clean without confirmation
peeky clean --yes

# Force kill processes
peeky clean --force

WHOIS Lookup

# Look up information about a domain
peeky whois example.com

# Look up information about an IP address
peeky whois 8.8.8.8

# Use only local resolution (no API calls)
peeky whois example.com --local

Security Risk Analysis

# Identify potential security risks in network configuration
peeky secure

Export Data

# Export connection data to JSON
peeky export --json

# Export to a file
peeky export --out connections.json --json

# Export filtered data
peeky export --port 8080 --tcp --json

Configure API Keys

# Set up the WHOIS API key (APILayer)
peeky config --set-whois-key

# Provide an API key directly
peeky config --set-whois-key --key YOUR_API_KEY

# Show configured API keys (masked)
peeky config --show-keys

API Integration

Peeky uses the APILayer WHOIS API for enhanced domain lookups. To use this feature:

  1. Get an API key from APILayer WHOIS API
  2. Configure your API key:
    peeky config --set-whois-key
    

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

peeky-0.1.2.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

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

peeky-0.1.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file peeky-0.1.2.tar.gz.

File metadata

  • Download URL: peeky-0.1.2.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for peeky-0.1.2.tar.gz
Algorithm Hash digest
SHA256 81a714f7e6732b73e073e3f6cf26f4fdb8694e9ad0147fdd4c1a3732e535e72e
MD5 85513778d0a5ceab70efe2e8aa63a6ab
BLAKE2b-256 43c7ef8e2b65221e5041239eba475ef678ac725a2e901696ca0d67ca2d050e66

See more details on using hashes here.

File details

Details for the file peeky-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: peeky-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for peeky-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 93b8a7aaffd017ec86ba678b8058686eb4ad35a9808dd8249d4f954e723202c6
MD5 3b1c5446d14a30ff54938a5d0d616034
BLAKE2b-256 9ddc85902087706857edbd6baf9f8ec09c4402045155ea26129803a7adfec6b1

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