Skip to main content

xscanner

Extension C++ (pybind11) qui accélère le scanner AST de sécurité de xcore : classification des imports (ImportClassifier) multithread, O(1) pour les listes autorisées/interdites.

xcore fonctionne sans — il retombe automatiquement sur une implémentation Python pure si scanner_core n'est pas installé. xcorescanner est un accélérateur optionnel, pas une dépendance dure.

Installation

pip install xcorescanner
# ou, avec xcore :
pip install "XCoreRuntime[cpp]"

Usage

from scanner_core import ImportClassifier

clf = ImportClassifier(allowed=["os", "sys"], forbidden=["subprocess"])
clf.classify("subprocess")  # -> "forbidden"

Le nom importable est scanner_core (pas xcorescanner) — xcore l'importe directement sous ce nom, avec repli sur l'implémentation Python pure en son absence.

Build local

pip install -e .

Nécessite un compilateur C++17 (std::filesystem).

Plateformes publiées

Wheels précompilées pour Linux (x86_64, aarch64) et macOS (x86_64, arm64), Python 3.12+. Ailleurs, pip install compile depuis la source (nécessite un toolchain C++17).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xcorescanner-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (359.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (350.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (143.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (359.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (350.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (143.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file xcorescanner-0.1.0.tar.gz.

File metadata

  • Download URL: xcorescanner-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xcorescanner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab4528b223257801682849effca1d0c834020230c29b636b8c93c7a85db017db
MD5 99511a11879a5b88cf9e8762ca016ed3
BLAKE2b-256 8f0dfc21e9b4dd7a7da2f9598928bebcc11ef4e2aead63336ccfd04d8fdd81ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0.tar.gz:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 adc24d701618d0299057b867cfc02f052d4e0b43651b0bca1429da943be45494
MD5 c701fed0414e3db17d094a62636fc1a0
BLAKE2b-256 96bf022d3c084289933a50f8aed5ab23cc1c78c1564526a0370a5635cbaedfdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 04d89b7628f0128bebc43d0084c309abb7143674d68a9344317f50b291a626dd
MD5 8f27f388ed9dae3d26e765445d8ebb5e
BLAKE2b-256 44aecc8940dbd0218a5cdd175c163591352e2f118ded3741a6ec4784f8e0ef5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3dd9a2a7dd3fc237f1c2e4e02b68e37066216101cdab4ad84da5648099218d88
MD5 3c96389ab811eeb9309db5a1849d8edc
BLAKE2b-256 27cd432af34f448be62fa3b3fd1cce7396bbae0093012646a15ae39ea6294d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc6f447dd63c48044596068515a9fcadf6ac999b534da3189077f609271db2b7
MD5 aed073601da2967e494d12cb9c74e26e
BLAKE2b-256 8ed986a575b95fd811bc2e1a35d522c60a722763a975fca60dc28f134d0aea0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98fd6ecfa0a362a4c9f67311bb4feb9f540e360487953cbf489ccff23c7b6739
MD5 71c4ca5f92937e9c62574479c7ed8387
BLAKE2b-256 25fe2cc6994805ef42f9a2c70976f9dd2d349574093172de2698d428a8f12b6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b61ede86af7fc43df5c6910556909b286dde4198ef93fd09f0488e0670e72b4
MD5 0145ee38ef6f99503267c3a39fed5914
BLAKE2b-256 7138f05e8463c0f531b4dba4701c5f5be03d097e6d09faaa2c6eb748ede71296

See more details on using hashes here.

Provenance

The following attestation bundles were made for xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: pypi.yaml on traoreera/xscanner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

7 files

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