betterleaks-cli 2.0.0rc16__py3-none-win_amd64.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.
@@ -0,0 +1,44 @@
1
+ """Betterleaks CLI — standalone command-line secret scanner.
2
+
3
+ This package ships only the compiled Betterleaks Go CLI executable.
4
+ For the in-process Python SDK, install ``betterleaks-sdk`` or ``betterleaks``.
5
+ """
6
+
7
+ import os
8
+ import subprocess
9
+ import sys
10
+ from pathlib import Path
11
+
12
+ from betterleaks_cli._version import __version__
13
+
14
+ __all__ = ["__version__", "get_binary_path", "main"]
15
+
16
+
17
+ def _binary_name() -> str:
18
+ return "betterleaks.exe" if sys.platform == "win32" else "betterleaks"
19
+
20
+
21
+ def get_binary_path() -> str:
22
+ """Return the path to the bundled Betterleaks CLI binary."""
23
+ binary = Path(__file__).resolve().parent / "bin" / _binary_name()
24
+
25
+ if not binary.exists():
26
+ raise FileNotFoundError(
27
+ "Betterleaks CLI binary not found. This wheel may not match your platform."
28
+ )
29
+
30
+ return os.fspath(binary)
31
+
32
+
33
+ def main() -> None:
34
+ """Execute the bundled Betterleaks CLI binary."""
35
+ try:
36
+ binary = get_binary_path()
37
+ except FileNotFoundError as e:
38
+ print(f"Error: {e}", file=sys.stderr)
39
+ sys.exit(1)
40
+
41
+ if sys.platform == "win32":
42
+ raise SystemExit(subprocess.call([binary, *sys.argv[1:]]))
43
+
44
+ os.execvp(binary, [binary, *sys.argv[1:]])
@@ -0,0 +1 @@
1
+ __version__ = "2.0.0rc16"
Binary file
File without changes
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: betterleaks-cli
3
+ Version: 2.0.0rc16
4
+ Summary: Standalone CLI for Betterleaks, the high-performance secret and credential detection engine.
5
+ Author: Betterleaks Contributors
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Zachary Rice
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://github.com/betterleaks/betterleaks
29
+ Project-URL: Repository, https://github.com/betterleaks/betterleaks
30
+ Project-URL: Issues, https://github.com/betterleaks/betterleaks/issues
31
+ Project-URL: Changelog, https://github.com/betterleaks/betterleaks/releases
32
+ Classifier: Development Status :: 4 - Beta
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: Intended Audience :: Information Technology
35
+ Classifier: Intended Audience :: System Administrators
36
+ Classifier: Topic :: Security
37
+ Classifier: Topic :: Software Development :: Quality Assurance
38
+ Classifier: Programming Language :: Python :: 3
39
+ Classifier: Programming Language :: Python :: 3.8
40
+ Classifier: Programming Language :: Python :: 3.9
41
+ Classifier: Programming Language :: Python :: 3.10
42
+ Classifier: Programming Language :: Python :: 3.11
43
+ Classifier: Programming Language :: Python :: 3.12
44
+ Classifier: Programming Language :: Python :: 3.13
45
+ Classifier: Programming Language :: Go
46
+ Classifier: License :: OSI Approved :: MIT License
47
+ Classifier: Typing :: Typed
48
+ Classifier: Operating System :: MacOS
49
+ Classifier: Operating System :: POSIX :: Linux
50
+ Classifier: Operating System :: Microsoft :: Windows
51
+ Classifier: Environment :: Console
52
+ Requires-Python: >=3.8
53
+ Description-Content-Type: text/markdown
54
+ License-File: LICENSE
55
+ Provides-Extra: dev
56
+ Requires-Dist: pytest>=7.0; extra == "dev"
57
+ Requires-Dist: build; extra == "dev"
58
+ Requires-Dist: twine; extra == "dev"
59
+ Requires-Dist: wheel; extra == "dev"
60
+ Dynamic: license-file
61
+
62
+ # betterleaks-cli
63
+
64
+ Standalone Python-packaged CLI distribution for [Betterleaks](https://github.com/betterleaks/betterleaks), the fast secret and credential detection engine written in Go.
65
+
66
+ This package ships **only** the compiled `betterleaks` CLI executable (`pip install betterleaks-cli`).
67
+ For the in-process Python SDK, install `betterleaks-sdk` or `betterleaks`.
68
+
69
+ ---
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ pip install betterleaks-cli
75
+ ```
76
+
77
+ | Platform | Architecture | CLI (`betterleaks`) |
78
+ | --- | --- | --- |
79
+ | macOS | ARM64 & x86-64 | Bundled `betterleaks` binary. The wheel tag specifies the minimum macOS for that release. |
80
+ | Linux (glibc) | x86-64 & ARM64 | Bundled `betterleaks` binary |
81
+ | Windows | x86-64 & ARM64 | Bundled `betterleaks.exe` binary |
82
+
83
+ ### Building from Source
84
+
85
+ ```bash
86
+ git clone https://github.com/betterleaks/betterleaks.git
87
+ cd betterleaks
88
+ pip install ./bindings/python/cli
89
+ ```
90
+
91
+ ---
92
+
93
+ ## CLI Usage
94
+
95
+ ```bash
96
+ betterleaks --version
97
+ betterleaks git .
98
+ betterleaks filesystem path/to/project
99
+ betterleaks stdin < file.txt
100
+ ```
101
+
102
+ ```python
103
+ from betterleaks_cli import get_binary_path
104
+
105
+ print(get_binary_path())
106
+ ```
107
+
108
+ ## License
109
+
110
+ MIT License. See [LICENSE](https://github.com/betterleaks/betterleaks/blob/main/LICENSE) for details.
@@ -0,0 +1,10 @@
1
+ betterleaks_cli/__init__.py,sha256=GXt6fClyjYCtv80NHCs4AyggP1xc-vl4sIs2ZVavJFs,1214
2
+ betterleaks_cli/_version.py,sha256=sUQuTwNb7WMR4AnWib9byHdlv2f6t5rWdapRKkvBfPM,26
3
+ betterleaks_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ betterleaks_cli/bin/betterleaks.exe,sha256=PNJoaeh83P77DUMLk3yZQL6ArSMEsQ6PQBHAfIxYwNc,28591616
5
+ betterleaks_cli-2.0.0rc16.dist-info/licenses/LICENSE,sha256=yuoRRZKo-OXgWhFtY6meDM15o_909N3ycLz0ySnrAh4,1069
6
+ betterleaks_cli-2.0.0rc16.dist-info/METADATA,sha256=hvL71wYAM22lIKMLZeWvAzBy9yjsRQUI4Et81H04_N8,4288
7
+ betterleaks_cli-2.0.0rc16.dist-info/WHEEL,sha256=BlXG8Qkq_mCTKpY-toCToAQAmGPE73xawTOhla8_4pE,98
8
+ betterleaks_cli-2.0.0rc16.dist-info/entry_points.txt,sha256=VETBK49CJU6BW1-MD-iqDicVUxfRJqFXkx9KOlXoMUY,53
9
+ betterleaks_cli-2.0.0rc16.dist-info/top_level.txt,sha256=bjgdenpJLOcM9qPd3eUoRqzwnlD0eso-0TTJn77WVJw,16
10
+ betterleaks_cli-2.0.0rc16.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ betterleaks = betterleaks_cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Zachary Rice
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ betterleaks_cli