secretcheck 1.0.3__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 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,43 @@
1
+ """Execs the bundled secretcheck binary, forwarding argv and exit code.
2
+
3
+ The actual scanning logic lives in the Go binary shipped inside this
4
+ platform-specific wheel (see packaging/pypi/build_wheels.sh); this module
5
+ is just a launcher so `pip install secretcheck` gives you a `secretcheck`
6
+ command and `python -m secretcheck` both work.
7
+ """
8
+
9
+ import os
10
+ import subprocess
11
+ import sys
12
+
13
+
14
+ def _binary_name() -> str:
15
+ return "secretcheck.exe" if os.name == "nt" else "secretcheck"
16
+
17
+
18
+ def main() -> None:
19
+ here = os.path.dirname(os.path.abspath(__file__))
20
+ binary = os.path.join(here, "bin", _binary_name())
21
+
22
+ if not os.path.exists(binary):
23
+ sys.stderr.write(
24
+ "secretcheck: no bundled binary found for this platform.\n"
25
+ "This wheel may not match your platform/architecture. Try:\n"
26
+ " pip install --force-reinstall --no-cache-dir secretcheck\n"
27
+ "or download a binary directly from:\n"
28
+ " https://github.com/anukool23/secretcheck/releases\n"
29
+ )
30
+ sys.exit(1)
31
+
32
+ if os.name != "nt":
33
+ try:
34
+ os.chmod(binary, 0o755)
35
+ except OSError:
36
+ pass
37
+
38
+ result = subprocess.run([binary, *sys.argv[1:]])
39
+ sys.exit(result.returncode)
40
+
41
+
42
+ if __name__ == "__main__":
43
+ main()
Binary file
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: secretcheck
3
+ Version: 1.0.3
4
+ Summary: Git pre-commit secret scanner (Go binary under the hood). Blocks commits that contain API keys, tokens, and credentials, with a clear option to override.
5
+ Author-email: Anukool Patel <aanukool.patel@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/anukool23/secretcheck
8
+ Project-URL: Repository, https://github.com/anukool23/secretcheck
9
+ Keywords: git,pre-commit,secrets,security,credentials
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Classifier: Topic :: Security
15
+ Requires-Python: >=3.8
16
+ Description-Content-Type: text/markdown
17
+
18
+ # secretcheck
19
+
20
+ A git pre-commit hook that scans staged files for secrets — API keys,
21
+ tokens, private keys, credentials — and blocks the commit if it finds any,
22
+ with an explicit option to override.
23
+
24
+ ```bash
25
+ pip install secretcheck
26
+ secretcheck init # installs the pre-commit hook in the current repo
27
+ ```
28
+
29
+ This package bundles a prebuilt Go binary for your platform; `secretcheck`
30
+ and `python -m secretcheck` both just launch it. Full docs, rule list, and
31
+ config options: https://github.com/anukool23/secretcheck
@@ -0,0 +1,8 @@
1
+ secretcheck/__init__.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
2
+ secretcheck/__main__.py,sha256=WqRdj9nnvAXRACsWrKrlivsJXMB1hEbAv-sov2Cvs3c,1282
3
+ secretcheck/bin/secretcheck.exe,sha256=BpBwZ_bBhZkKJASDCL4Tval-ZSmY5GKy3z_Ls9DyeCU,2457088
4
+ secretcheck-1.0.3.dist-info/METADATA,sha256=VRDRCDhBPRf4-N0IRya4ORdoyYXugvG0mJpmEcYui0A,1272
5
+ secretcheck-1.0.3.dist-info/WHEEL,sha256=hVx9elvUDfBjRmbl8JwIcXXikst35RZTZK9nspfI_28,98
6
+ secretcheck-1.0.3.dist-info/entry_points.txt,sha256=u_qPxR_tlRlVXO6z05cy2d9Sbe59ABSsgUGtXBLKO8k,58
7
+ secretcheck-1.0.3.dist-info/top_level.txt,sha256=hVVo9Cmugeh_-C5DJPSE2Brv5-EB9ALQZ6JX_IVTcKo,12
8
+ secretcheck-1.0.3.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ secretcheck = secretcheck.__main__:main
@@ -0,0 +1 @@
1
+ secretcheck