Metadata-Version: 2.4
Name: betterleaks-cli
Version: 2.0.0rc16
Summary: Standalone CLI for Betterleaks, the high-performance secret and credential detection engine.
Author: Betterleaks Contributors
License: MIT License
        
        Copyright (c) 2026 Zachary Rice
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/betterleaks/betterleaks
Project-URL: Repository, https://github.com/betterleaks/betterleaks
Project-URL: Issues, https://github.com/betterleaks/betterleaks/issues
Project-URL: Changelog, https://github.com/betterleaks/betterleaks/releases
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Go
Classifier: License :: OSI Approved :: MIT License
Classifier: Typing :: Typed
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Environment :: Console
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: wheel; extra == "dev"
Dynamic: license-file

# betterleaks-cli

Standalone Python-packaged CLI distribution for [Betterleaks](https://github.com/betterleaks/betterleaks), the fast secret and credential detection engine written in Go.

This package ships **only** the compiled `betterleaks` CLI executable (`pip install betterleaks-cli`).
For the in-process Python SDK, install `betterleaks-sdk` or `betterleaks`.

---

## Installation

```bash
pip install betterleaks-cli
```

| Platform | Architecture | CLI (`betterleaks`) |
| --- | --- | --- |
| macOS | ARM64 & x86-64 | Bundled `betterleaks` binary. The wheel tag specifies the minimum macOS for that release. |
| Linux (glibc) | x86-64 & ARM64 | Bundled `betterleaks` binary |
| Windows | x86-64 & ARM64 | Bundled `betterleaks.exe` binary |

### Building from Source

```bash
git clone https://github.com/betterleaks/betterleaks.git
cd betterleaks
pip install ./bindings/python/cli
```

---

## CLI Usage

```bash
betterleaks --version
betterleaks git .
betterleaks filesystem path/to/project
betterleaks stdin < file.txt
```

```python
from betterleaks_cli import get_binary_path

print(get_binary_path())
```

## License

MIT License. See [LICENSE](https://github.com/betterleaks/betterleaks/blob/main/LICENSE) for details.
