testscan (Python launcher)
English | Русский
Thin wrapper: finds the Go binary and forwards argv / exit code.
Source of truth is the Go CLI (cmd/testscan). Python has no rules, parsing, or flag handling.
Package name on PyPI: testscan. Version comes from git tags (v*) via hatch-vcs.
Install (PyPI)
uvx testscan@latest tests/
# or: pipx run testscan tests/
# or: pip install testscan && testscan tests/
Release CI builds platform wheels (linux/amd64, darwin/arm64, windows/amd64) with the Go binary under testscan_py/bin/.
Local embed (contributors)
Binaries under src/testscan_py/bin/ are not committed (.gitignore). Embed before uvx --from ./python. pyproject.toml sets ignore-vcs = true and force-include for bin/*, otherwise hatchling can drop the binary because of gitignore.
powershell -ExecutionPolicy Bypass -File python/scripts/embed_bin.ps1
bash python/scripts/embed_bin.sh
Manual equivalent:
go build -o python/src/testscan_py/bin/testscan ./cmd/testscan
# Windows: .../bin/testscan.exe
Then:
uvx --from ./python testscan --help
uvx --from ./python testscan rules/testdata/empty --fail-on never
Without embed — via env (handy for debugging the wrapper):
go build -o /tmp/testscan ./cmd/testscan
TESTSCAN_BIN=/tmp/testscan uvx --from ./python testscan --help
Platform wheel (release / maintainers)
# from repo root; needs git tag history for hatch-vcs
bash python/scripts/build_platform_wheel.sh linux-amd64 manylinux_2_17_x86_64
Tag a release (v0.1.0) to trigger .github/workflows/release.yml → multi-OS wheels → PyPI + GitHub Release.
Before the first publish: create a PyPI project + Trusted Publisher for this repo (workflow Release, environment pypi), or the publish job will fail on OIDC.
Binary lookup (priority)
TESTSCAN_BIN- bundled:
testscan_py/bin/testscan.exe(Windows) /testscan(unix) PATH(shutil.which("testscan"))
If not found → message on stderr, exit 2.
Manual check list
-
uvx testscan@latest --help(after PyPI publish) → usage (exit 0) -
uvx --from ./python testscan --helpafter embed → usage (exit 0) -
uvx --from ./python testscan rules/testdata/empty/hit --rule empty-test --fail-on error→ exit 1 -
uvx --from ./python testscan rules/testdata/empty/clean --fail-on error→ exit 0 - bundled binary in wheel after embed +
ignore-vcs/force-include -
go test ./...green
Metadata
Release files for testscan 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| testscan-0.4.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for testscan-0.4.0-py3-none-win_amd64.whl |
| testscan-0.4.0-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for testscan-0.4.0-py3-none-manylinux_2_17_x86_64.whl |
| testscan-0.4.0-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details for testscan-0.4.0-py3-none-macosx_11_0_x86_64.whl |
| testscan-0.4.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for testscan-0.4.0-py3-none-macosx_11_0_arm64.whl |
Total release size: 6.2 MB
Release files / testscan-0.4.0-py3-none-win_amd64.whl
| Download URL | testscan-0.4.0-py3-none-win_amd64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ffa402238fc52424a2a18bb47b3a99e44ac8be7bc1bc92df85b80e448813a18f
|
|
BLAKE2b-256 checksum How to use checksums |
0f7c2ebc250fe6bce9b553a4297eb93423c1fd904093c1d98f931597bbb88259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 1, 2026.
Transparency logRelease files / testscan-0.4.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | testscan-0.4.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
f9cecc7c4f82b720ea529e4ccd00b64fd94ddf33b3fa4bef53fb17f267dbd3b6
|
|
BLAKE2b-256 checksum How to use checksums |
4541247d2fd501b0a7a10e7fdceb970c77dddbce148adff7d923cbdac54c56f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 1, 2026.
Transparency logRelease files / testscan-0.4.0-py3-none-macosx_11_0_x86_64.whl
| Download URL | testscan-0.4.0-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
e663049bdf319d319752a8b015a3086a66cc986a50dcc0d280c4829fdda03a6b
|
|
BLAKE2b-256 checksum How to use checksums |
0c717b1665c2a41ff302cd465777356586e8c667c2efc89e4801b640ce4b4199
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 1, 2026.
Transparency logRelease files / testscan-0.4.0-py3-none-macosx_11_0_arm64.whl
| Download URL | testscan-0.4.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
894406775bbd914d34857b9841a771359f61f666115527504f170e218889da69
|
|
BLAKE2b-256 checksum How to use checksums |
9601f2dbae100d6f7abc2061556cbb8c372cbe3498dfa5ddb4f37431e5b68590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 1, 2026.
Transparency logSecurity for testscan 0.4.0
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 4 files in this release have been uploaded with provenance metadata.
Attestation for testscan-0.4.0-py3-none-win_amd64.whl
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 Oct 1, 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.