Skip to main content

sc-lint for Python

sc-lint on PyPI provides Python bindings for the Rust sc-lint CLI and the repository-maintenance helper modules used by the project. It does not install the Rust CLI executables. Install those separately with Homebrew or from GitHub Releases.

Current release: 0.8.9. Python 3.9 or newer is required (3.11 or newer on Windows ARM64).

Install

python -m pip install sc-lint

The Python package includes the native extension and the sc_lint Python package. Its runtime dependencies are codespell>=2.2 for the repository spell-check helper and packaging>=22 for Python dependency checks. The package does not expose a sc-lint console script.

Python API

The native module exposes three public helpers:

import sc_lint

# JSON string with the bound sc-lint version.
version = sc_lint.version_json()

# Run the CLI in-process; argv[0] is the program name.
exit_code = sc_lint.run(["sc-lint", "version"])

# Resolve the product executable from SC_LINT_BIN, the managed install
# directory, or PATH. Raises FileNotFoundError if no executable is found.
binary = sc_lint.binary_path()

run(argv) returns the CLI exit code instead of terminating the Python interpreter. It does not add a command-line entry point to the wheel.

The native extension also provides toml_loads(text), which the helper modules use so TOML is parsed by the same Rust parser as the CLI on every supported Python version.

Version synchronization

The check_version_sync helper verifies the workspace's Python project versions and their declared dependencies. When a project listed in python_manifests under [version_sync.python] depends on another listed project, the dependency specifier must admit the workspace version. Otherwise the helper reports python.dependency_specifier; expected is the workspace version and actual is the dependency specifier. See the Python bindings guide for configuration and the full finding contract.

Metadata

Release files for sc-lint 0.8.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sc-lint 0.8.9
File Size Uploaded Provenance Actions
sc_lint-0.8.9.tar.gz 568.6 kB Without provenance Details for sc_lint-0.8.9.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sc-lint 0.8.9
File Actions
sc_lint-0.8.9-cp39-abi3-win_arm64.whl CPython 3.9 abi3 Windows ARM64 Details for sc_lint-0.8.9-cp39-abi3-win_arm64.whl
sc_lint-0.8.9-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for sc_lint-0.8.9-cp39-abi3-win_amd64.whl
sc_lint-0.8.9-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for sc_lint-0.8.9-cp39-abi3-manylinux_2_28_x86_64.whl
sc_lint-0.8.9-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for sc_lint-0.8.9-cp39-abi3-manylinux_2_28_aarch64.whl
sc_lint-0.8.9-cp39-abi3-macosx_11_0_x86_64.whl CPython 3.9 abi3 macOS 11.0+ x86-64 Details for sc_lint-0.8.9-cp39-abi3-macosx_11_0_x86_64.whl
sc_lint-0.8.9-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for sc_lint-0.8.9-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 28.3 MB

Release files / sc_lint-0.8.9.tar.gz

Download URL sc_lint-0.8.9.tar.gz
Size 568.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ddde7189e3b45774cf7ccf553d3f27e32c76105d53639d83380a58e40ed0371e
BLAKE2b-256 checksum
How to use checksums
29b7ca2d0980ed036be3c75029d08804e201e416c37b19ca32a397295c9565cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-win_arm64.whl

Download URL sc_lint-0.8.9-cp39-abi3-win_arm64.whl
Size 4.3 MB
Tags CPython 3.9 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
af892c63acdba429d1a810b1f19eea43b004c202c4772ba52e0d86ab8308dedd
BLAKE2b-256 checksum
How to use checksums
e44837f2816d5b8a7cd6cf9cd4a41a91286b8b4351518d5ba6f23518ce9142c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-win_amd64.whl

Download URL sc_lint-0.8.9-cp39-abi3-win_amd64.whl
Size 4.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f25540f687924335d67d9d7090d1aa7ad02033bd92e0cd8836f6771be724b454
BLAKE2b-256 checksum
How to use checksums
f98ff9950c7467f7bfb3f7a5fefae5ae587cbf68acae6f320b89a8136383c4a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL sc_lint-0.8.9-cp39-abi3-manylinux_2_28_x86_64.whl
Size 4.8 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
05373c44b9d2266557741fd8b2e1dd7fdc3cf951654b5fba1a66e40d4f326b08
BLAKE2b-256 checksum
How to use checksums
088019f898eca492bf4a410506f9beee185975e51c7d9ff1bf5571ad82da5261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL sc_lint-0.8.9-cp39-abi3-manylinux_2_28_aarch64.whl
Size 4.3 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
367527fee654611c28af8dbf47600cb9522de086c68de6fe225123060fbdd977
BLAKE2b-256 checksum
How to use checksums
bc3f08e1519aac6d30aff1a118a83a714e0e3d941ce3a31249ec0fdb78512cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-macosx_11_0_x86_64.whl

Download URL sc_lint-0.8.9-cp39-abi3-macosx_11_0_x86_64.whl
Size 5.0 MB
Tags CPython 3.9 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
126435c81b8d964a3bb3b07c4e5e407c163212c4003d385d8d033d058b09b0ac
BLAKE2b-256 checksum
How to use checksums
424e9561cf501ca7d97ead098f55cf1f0256b55a46f0311b1a729506cb692c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / sc_lint-0.8.9-cp39-abi3-macosx_11_0_arm64.whl

Download URL sc_lint-0.8.9-cp39-abi3-macosx_11_0_arm64.whl
Size 4.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2a3ad373e003311a9289ba30db0b65b3897a0091bf556801a424f3307135a81c
BLAKE2b-256 checksum
How to use checksums
d7bf1933b2f19475b19166fc8f81383866f2f0854158d760ac7648dceef2ed93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Security for sc-lint 0.8.9

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page