kport 2.1.2__py3-none-any.whl → 3.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kport
3
- Version: 2.1.2
3
+ Version: 3.1.0
4
4
  Summary: A cross-platform command-line tool to inspect and kill processes using specific ports
5
5
  Home-page: https://github.com/farman20ali/port-killer
6
6
  Author: Farman Ali
@@ -28,6 +28,7 @@ Classifier: Operating System :: MacOS
28
28
  Requires-Python: >=3.6
29
29
  Description-Content-Type: text/markdown
30
30
  License-File: LICENSE
31
+ Requires-Dist: psutil>=5.9.0
31
32
  Dynamic: author
32
33
  Dynamic: author-email
33
34
  Dynamic: classifier
@@ -37,6 +38,7 @@ Dynamic: home-page
37
38
  Dynamic: keywords
38
39
  Dynamic: license-file
39
40
  Dynamic: project-url
41
+ Dynamic: requires-dist
40
42
  Dynamic: requires-python
41
43
  Dynamic: summary
42
44
 
@@ -155,8 +157,20 @@ On Linux, some ports may appear as `LISTEN` but the owning PID/process name is n
155
157
  If you see `local-unknown` in `inspect` / `explain`, try:
156
158
 
157
159
  ```bash
158
- sudo kport inspect 6379
159
- sudo kport explain 6379
160
+ sudo -E kport inspect 6379
161
+ sudo -E kport explain 6379
162
+ ```
163
+
164
+ If you installed with `pip install --user kport`, `sudo` may not find `kport` because root's `PATH` doesn't include your user scripts directory.
165
+
166
+ Alternatives:
167
+
168
+ ```bash
169
+ # Option 1: keep your PATH when using sudo
170
+ sudo -E "$HOME/.local/bin/kport" inspect 6379
171
+
172
+ # Option 2: run the module via the system python (when working from repo)
173
+ sudo -E python3 kport.py inspect 6379
160
174
  ```
161
175
 
162
176
  ### Config file support (Phase 2)
@@ -0,0 +1,7 @@
1
+ kport.py,sha256=0swOnRrBMCpTm9Ivr8dDEjN9iJw9VLYX8ce_1LrDIFE,83354
2
+ kport-3.1.0.dist-info/licenses/LICENSE,sha256=jIMuFOo3loyUX7Yc92eFXDJC9Wo1ASX5j3qdIDs4ceo,1062
3
+ kport-3.1.0.dist-info/METADATA,sha256=1qLqNT6HH4-v-25XXQpLNQQECvAFbWjiVJxycDFgzp4,14644
4
+ kport-3.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ kport-3.1.0.dist-info/entry_points.txt,sha256=ppZIgJ1vrmYs2EO9NcVSFCaZj7oj7t6RnJo8ArPQiRo,37
6
+ kport-3.1.0.dist-info/top_level.txt,sha256=yzlMBPZ7a-pcCN4DR5MRPO-VjY3fWnILtFUQpEuA2xY,6
7
+ kport-3.1.0.dist-info/RECORD,,
kport.py CHANGED
@@ -1402,7 +1402,7 @@ Examples:
1402
1402
  parser.add_argument("--exact", action="store_true", help="Use exact match for process name lookups")
1403
1403
  parser.add_argument("--force", action="store_true", help="Force kill immediately if needed (after graceful timeout)")
1404
1404
  parser.add_argument("--graceful-timeout", type=float, default=3.0, help="Seconds to wait for graceful termination before forcing (default 3.0)")
1405
- parser.add_argument("-v", "--version", action="version", version="kport 3.0.0 (upgraded)")
1405
+ parser.add_argument("-v", "--version", action="version", version="kport 3.1.0")
1406
1406
 
1407
1407
  # PRODUCT.md subcommands
1408
1408
  sub = parser.add_subparsers(dest="command")
@@ -1,7 +0,0 @@
1
- kport.py,sha256=3PztT_nQIxjyW8w1B5Jqdeia-Beu1sBzcilvI925akI,83365
2
- kport-2.1.2.dist-info/licenses/LICENSE,sha256=jIMuFOo3loyUX7Yc92eFXDJC9Wo1ASX5j3qdIDs4ceo,1062
3
- kport-2.1.2.dist-info/METADATA,sha256=KgrM_dX6-BdmP-DLLjUGMIa5jcCsMKUkie7wn8abHV8,14210
4
- kport-2.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- kport-2.1.2.dist-info/entry_points.txt,sha256=ppZIgJ1vrmYs2EO9NcVSFCaZj7oj7t6RnJo8ArPQiRo,37
6
- kport-2.1.2.dist-info/top_level.txt,sha256=yzlMBPZ7a-pcCN4DR5MRPO-VjY3fWnILtFUQpEuA2xY,6
7
- kport-2.1.2.dist-info/RECORD,,
File without changes