nogoo9-gitleaks
Python wrapper for gitleaks — find secrets in git repos.
Pre-built platform wheels ship the correct gitleaks binary for your OS — no
internet access needed after install. For unsupported platforms, the binary is
downloaded and cached on first use.
Installation
pip install nogoo9-gitleaks
# or
uv add nogoo9-gitleaks
# or
pipx install nogoo9-gitleaks
Usage
CLI
gitleaks git .
gitleaks dir .
gitleaks version
Python API
import nogoo9_gitleaks as gitleaks
# Get the path to the gitleaks binary
bin_path = gitleaks.get_binary_path()
# Scan a git repository
result = gitleaks.run(['git', '.', '--exit-code', '1'])
print(result.stdout)
print('exit code:', result.returncode)
Platform Support
Pre-built wheels are available for the most popular platforms:
| Platform | Architecture | Wheel tag |
|---|---|---|
| Linux | x86_64 | manylinux_2_17_x86_64 |
| Linux | aarch64 | manylinux_2_17_aarch64 |
| macOS | Apple Silicon (M1+) | macosx_11_0_arm64 |
| macOS | Intel x86_64 | macosx_10_9_x86_64 |
| Windows | x86_64 | win_amd64 |
A fallback py3-none-any wheel is also published for other platforms — it
downloads the correct binary from GitHub Releases on first use and caches it
locally.
Environment Variables
| Variable | Description |
|---|---|
NOGOO9_GITLEAKS_BIN |
Override the path to the gitleaks binary (skip bundled + download) |
NOGOO9_GITLEAKS_CACHE |
Override the download cache directory (default: ~/.cache/nogoo9-gitleaks) |
Binary Resolution Order
NOGOO9_GITLEAKS_BIN— explicit override (e.g. system-installed gitleaks)- Bundled binary — shipped inside the platform-specific wheel
- Download fallback — fetches from GitHub Releases on first use (SHA-256 verified)
Versioning
This package version tracks the upstream gitleaks
release version exactly (e.g. nogoo9-gitleaks==8.30.1 wraps gitleaks v8.30.1).
License
MIT — see LICENSE.
The bundled/downloaded gitleaks binary is also MIT licensed —
see LICENSES/gitleaks-MIT.txt.
Metadata
Release files for nogoo9-gitleaks 8.30.1.post3
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 | |
|---|---|---|---|---|
| nogoo9_gitleaks-8.30.1.post3.tar.gz | 5.8 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| nogoo9_gitleaks-8.30.1.post3-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details |
| nogoo9_gitleaks-8.30.1.post3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.8 MB
Release files / nogoo9_gitleaks-8.30.1.post3.tar.gz
| Download URL | nogoo9_gitleaks-8.30.1.post3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4623d2922ef4ed3f86e5b5a31274f37c9ef1695a9ea78ffac728fd40e77c9fe9
|
|
BLAKE2b-256 checksum How to use checksums |
da48c327d13349d6cf06f334e41c8ca23ecc9da9db7c2192c5facb8a08e710a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-win_amd64.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-win_amd64.whl |
|---|---|
| Size | 8.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
684f687f094edcb5d2da7057850c00cbc6ae3afc5d66a61d8f3b9c16b3ab49e2
|
|
BLAKE2b-256 checksum How to use checksums |
bac501534e2ffe5464a4d220d1a3b3d34868289ea4e3226816e74f4b37b57fb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 8.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
cedf397a272e243a3607bfa31e35325431528575c53d55934ba422ec34a6b90a
|
|
BLAKE2b-256 checksum How to use checksums |
ca9756611b6ae4b03c59f802eb1fb9c7273fc0d8fe5b633d102cc158316adc7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
c167126e9e8f474c0ccb2d493695cf9b667a991e62261826012a5004a49883dc
|
|
BLAKE2b-256 checksum How to use checksums |
1c0c651f9370072732fa22245e1bfce9eaf1dc50ce943c73a23a18855a574931
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_11_0_arm64.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
99624ee3e8e1bd810d8815288df3a7b2072f11a8abc46f83556086cd69167f57
|
|
BLAKE2b-256 checksum How to use checksums |
722aa3f08f58a69d9e4f13542356406683d912544d46a2f1507ffcb354e157ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_10_9_x86_64.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 8.2 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
cd09e5b594a29961acf11c734b7c309d2b18dd029ab200bb3339e673cc424a5e
|
|
BLAKE2b-256 checksum How to use checksums |
f524a67ae2db294a4defa427c2353c788586fca22270a414e18923cc2589c983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logRelease files / nogoo9_gitleaks-8.30.1.post3-py3-none-any.whl
| Download URL | nogoo9_gitleaks-8.30.1.post3-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aa10108a0309e4dc652aa353fe65bdc499e5248ece0342f401d113a922b6c6c
|
|
BLAKE2b-256 checksum How to use checksums |
bad8c2a949e31bf31c72f1a66f4b4806cfc6a38ad68bbee4a61174cb87b0774b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logSecurity for nogoo9-gitleaks 8.30.1.post3
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.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for nogoo9_gitleaks-8.30.1.post3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 7, 2026.
Transparency logA 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.