killpy 0.19.2__tar.gz → 0.20.0__tar.gz

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.
Files changed (36) hide show
  1. {killpy-0.19.2 → killpy-0.20.0}/PKG-INFO +19 -1
  2. {killpy-0.19.2 → killpy-0.20.0}/README.md +18 -0
  3. {killpy-0.19.2 → killpy-0.20.0}/killpy/models.py +7 -1
  4. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/PKG-INFO +19 -1
  5. {killpy-0.19.2 → killpy-0.20.0}/pyproject.toml +2 -2
  6. {killpy-0.19.2 → killpy-0.20.0}/killpy/__init__.py +0 -0
  7. {killpy-0.19.2 → killpy-0.20.0}/killpy/__main__.py +0 -0
  8. {killpy-0.19.2 → killpy-0.20.0}/killpy/cleaner.py +0 -0
  9. {killpy-0.19.2 → killpy-0.20.0}/killpy/cleaners/__init__.py +0 -0
  10. {killpy-0.19.2 → killpy-0.20.0}/killpy/cli.py +0 -0
  11. {killpy-0.19.2 → killpy-0.20.0}/killpy/commands/__init__.py +0 -0
  12. {killpy-0.19.2 → killpy-0.20.0}/killpy/commands/clean.py +0 -0
  13. {killpy-0.19.2 → killpy-0.20.0}/killpy/commands/delete.py +0 -0
  14. {killpy-0.19.2 → killpy-0.20.0}/killpy/commands/list.py +0 -0
  15. {killpy-0.19.2 → killpy-0.20.0}/killpy/commands/stats.py +0 -0
  16. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/__init__.py +0 -0
  17. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/artifacts.py +0 -0
  18. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/base.py +0 -0
  19. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/cache.py +0 -0
  20. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/conda.py +0 -0
  21. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/hatch.py +0 -0
  22. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/pipenv.py +0 -0
  23. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/pipx.py +0 -0
  24. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/poetry.py +0 -0
  25. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/pyenv.py +0 -0
  26. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/tox.py +0 -0
  27. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/uv.py +0 -0
  28. {killpy-0.19.2 → killpy-0.20.0}/killpy/detectors/venv.py +0 -0
  29. {killpy-0.19.2 → killpy-0.20.0}/killpy/files/__init__.py +0 -0
  30. {killpy-0.19.2 → killpy-0.20.0}/killpy/scanner.py +0 -0
  31. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/SOURCES.txt +0 -0
  32. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/dependency_links.txt +0 -0
  33. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/entry_points.txt +0 -0
  34. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/requires.txt +0 -0
  35. {killpy-0.19.2 → killpy-0.20.0}/killpy.egg-info/top_level.txt +0 -0
  36. {killpy-0.19.2 → killpy-0.20.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: killpy
3
- Version: 0.19.2
3
+ Version: 0.20.0
4
4
  Summary: List all .venv directories and Conda environments 🐍 on your system and check how much space they are using. You can then choose which ones to delete in order to free up space 🧹.
5
5
  Project-URL: Homepage, https://github.com/Tlaloc-Es/killpy
6
6
  Project-URL: Documentation, https://tlaloc-es.github.io/killpy/
@@ -224,6 +224,24 @@ killpy list --json # output as a JSON array
224
224
  killpy list --json-stream # stream as NDJSON — one line per env
225
225
  ```
226
226
 
227
+ `--json` example output:
228
+
229
+ ```json
230
+ [
231
+ {
232
+ "path": "projects/my-app/.venv",
233
+ "absolute_path": "/home/user/projects/my-app/.venv",
234
+ "name": "my-app/.venv",
235
+ "type": "venv",
236
+ "last_accessed": "2025-11-02T14:23:01+00:00",
237
+ "size_bytes": 54393984,
238
+ "size_human": "51.88 MB",
239
+ "managed_by": null,
240
+ "is_system_critical": false
241
+ }
242
+ ]
243
+ ```
244
+
227
245
  `--json-stream` is ideal for piping into `jq` or processing in scripts before the full scan completes:
228
246
 
229
247
  ```bash
@@ -204,6 +204,24 @@ killpy list --json # output as a JSON array
204
204
  killpy list --json-stream # stream as NDJSON — one line per env
205
205
  ```
206
206
 
207
+ `--json` example output:
208
+
209
+ ```json
210
+ [
211
+ {
212
+ "path": "projects/my-app/.venv",
213
+ "absolute_path": "/home/user/projects/my-app/.venv",
214
+ "name": "my-app/.venv",
215
+ "type": "venv",
216
+ "last_accessed": "2025-11-02T14:23:01+00:00",
217
+ "size_bytes": 54393984,
218
+ "size_human": "51.88 MB",
219
+ "managed_by": null,
220
+ "is_system_critical": false
221
+ }
222
+ ]
223
+ ```
224
+
207
225
  `--json-stream` is ideal for piping into `jq` or processing in scripts before the full scan completes:
208
226
 
209
227
  ```bash
@@ -70,8 +70,14 @@ class Environment:
70
70
 
71
71
  def to_dict(self) -> dict:
72
72
  """Return a JSON-serialisable representation."""
73
+ abs_path = self.path.resolve()
74
+ try:
75
+ rel_path = abs_path.relative_to(Path.cwd())
76
+ except ValueError:
77
+ rel_path = abs_path
73
78
  return {
74
- "path": str(self.path),
79
+ "path": str(rel_path),
80
+ "absolute_path": str(abs_path),
75
81
  "name": self.name,
76
82
  "type": self.type,
77
83
  "last_accessed": self.last_accessed.isoformat(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: killpy
3
- Version: 0.19.2
3
+ Version: 0.20.0
4
4
  Summary: List all .venv directories and Conda environments 🐍 on your system and check how much space they are using. You can then choose which ones to delete in order to free up space 🧹.
5
5
  Project-URL: Homepage, https://github.com/Tlaloc-Es/killpy
6
6
  Project-URL: Documentation, https://tlaloc-es.github.io/killpy/
@@ -224,6 +224,24 @@ killpy list --json # output as a JSON array
224
224
  killpy list --json-stream # stream as NDJSON — one line per env
225
225
  ```
226
226
 
227
+ `--json` example output:
228
+
229
+ ```json
230
+ [
231
+ {
232
+ "path": "projects/my-app/.venv",
233
+ "absolute_path": "/home/user/projects/my-app/.venv",
234
+ "name": "my-app/.venv",
235
+ "type": "venv",
236
+ "last_accessed": "2025-11-02T14:23:01+00:00",
237
+ "size_bytes": 54393984,
238
+ "size_human": "51.88 MB",
239
+ "managed_by": null,
240
+ "is_system_critical": false
241
+ }
242
+ ]
243
+ ```
244
+
227
245
  `--json-stream` is ideal for piping into `jq` or processing in scripts before the full scan completes:
228
246
 
229
247
  ```bash
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "killpy"
3
- version = "0.19.2"
3
+ version = "0.20.0"
4
4
  description = "List all .venv directories and Conda environments 🐍 on your system and check how much space they are using. You can then choose which ones to delete in order to free up space 🧹."
5
5
  readme = "README.md"
6
6
  classifiers = [
@@ -63,7 +63,7 @@ exclude_lines = [
63
63
 
64
64
  [tool.commitizen]
65
65
  name = "cz_conventional_commits"
66
- version = "0.19.2"
66
+ version = "0.20.0"
67
67
  version_files = ["pyproject.toml:version", "README.md:rev:"]
68
68
 
69
69
  [project.scripts]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes