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

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.8
File Size Uploaded Provenance Actions
sc_lint-0.8.8.tar.gz 547.4 kB Without provenance Details for sc_lint-0.8.8.tar.gz

Built distributions (wheels)

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

Total release size: 26.5 MB

Release files / sc_lint-0.8.8.tar.gz

Download URL sc_lint-0.8.8.tar.gz
Size 547.4 kB
Tags Source
SHA-256 checksum
How to use checksums
87d17fe146790aa4a755fafa496ddf29c09337bc97252d2c047fc8419ac3b8a4
BLAKE2b-256 checksum
How to use checksums
811fd3793f6110ceb84d860dbd8eefbae9212a54f69bb39484649edd6812c00f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

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

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

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

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

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

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

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

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

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

Download URL sc_lint-0.8.8-cp39-abi3-macosx_11_0_x86_64.whl
Size 4.7 MB
Tags CPython 3.9 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
85fc998f0297475c99a3184127968a408509ea524001fe12a9b36d9461092204
BLAKE2b-256 checksum
How to use checksums
65464668fb75b0ad8979146157968b6ab831a59c41d9b2550fd8e253a8b9ea4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

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

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

Security for sc-lint 0.8.8

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