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:
- Get an API key from APILayer WHOIS API
- Configure your API key:
peeky config --set-whois-key
Metadata
Release files for peeky 0.1.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 |
|---|---|---|---|---|
| peeky-0.1.2.tar.gz | 23.8 kB | Without provenance | Details for peeky-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peeky-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for peeky-0.1.2-py3-none-any.whl |
Total release size: 51.4 kB
Release files / peeky-0.1.2.tar.gz
| Download URL | peeky-0.1.2.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81a714f7e6732b73e073e3f6cf26f4fdb8694e9ad0147fdd4c1a3732e535e72e
|
|
BLAKE2b-256 checksum How to use checksums |
43c7ef8e2b65221e5041239eba475ef678ac725a2e901696ca0d67ca2d050e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / peeky-0.1.2-py3-none-any.whl
| Download URL | peeky-0.1.2-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b8a7aaffd017ec86ba678b8058686eb4ad35a9808dd8249d4f954e723202c6
|
|
BLAKE2b-256 checksum How to use checksums |
9ddc85902087706857edbd6baf9f8ec09c4402045155ea26129803a7adfec6b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for peeky 0.1.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.