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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4528b223257801682849effca1d0c834020230c29b636b8c93c7a85db017db
|
|
| MD5 |
99511a11879a5b88cf9e8762ca016ed3
|
|
| BLAKE2b-256 |
8f0dfc21e9b4dd7a7da2f9598928bebcc11ef4e2aead63336ccfd04d8fdd81ef
|
Provenance
The following attestation bundles were made for xcorescanner-0.1.0.tar.gz:
Publisher:
pypi.yaml on traoreera/xscanner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0.tar.gz -
Subject digest:
ab4528b223257801682849effca1d0c834020230c29b636b8c93c7a85db017db - Sigstore transparency entry: 2540227849
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.5 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc24d701618d0299057b867cfc02f052d4e0b43651b0bca1429da943be45494
|
|
| MD5 |
c701fed0414e3db17d094a62636fc1a0
|
|
| BLAKE2b-256 |
96bf022d3c084289933a50f8aed5ab23cc1c78c1564526a0370a5635cbaedfdf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
adc24d701618d0299057b867cfc02f052d4e0b43651b0bca1429da943be45494 - Sigstore transparency entry: 2540227961
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 350.0 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d89b7628f0128bebc43d0084c309abb7143674d68a9344317f50b291a626dd
|
|
| MD5 |
8f27f388ed9dae3d26e765445d8ebb5e
|
|
| BLAKE2b-256 |
44aecc8940dbd0218a5cdd175c163591352e2f118ded3741a6ec4784f8e0ef5e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
04d89b7628f0128bebc43d0084c309abb7143674d68a9344317f50b291a626dd - Sigstore transparency entry: 2540228086
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 143.8 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd9a2a7dd3fc237f1c2e4e02b68e37066216101cdab4ad84da5648099218d88
|
|
| MD5 |
3c96389ab811eeb9309db5a1849d8edc
|
|
| BLAKE2b-256 |
27cd432af34f448be62fa3b3fd1cce7396bbae0093012646a15ae39ea6294d42
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp313-cp313-macosx_11_0_arm64.whl -
Subject digest:
3dd9a2a7dd3fc237f1c2e4e02b68e37066216101cdab4ad84da5648099218d88 - Sigstore transparency entry: 2540228022
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 359.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6f447dd63c48044596068515a9fcadf6ac999b534da3189077f609271db2b7
|
|
| MD5 |
aed073601da2967e494d12cb9c74e26e
|
|
| BLAKE2b-256 |
8ed986a575b95fd811bc2e1a35d522c60a722763a975fca60dc28f134d0aea0d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
fc6f447dd63c48044596068515a9fcadf6ac999b534da3189077f609271db2b7 - Sigstore transparency entry: 2540227910
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 350.2 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98fd6ecfa0a362a4c9f67311bb4feb9f540e360487953cbf489ccff23c7b6739
|
|
| MD5 |
71c4ca5f92937e9c62574479c7ed8387
|
|
| BLAKE2b-256 |
25fe2cc6994805ef42f9a2c70976f9dd2d349574093172de2698d428a8f12b6d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
98fd6ecfa0a362a4c9f67311bb4feb9f540e360487953cbf489ccff23c7b6739 - Sigstore transparency entry: 2540228216
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 143.7 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b61ede86af7fc43df5c6910556909b286dde4198ef93fd09f0488e0670e72b4
|
|
| MD5 |
0145ee38ef6f99503267c3a39fed5914
|
|
| BLAKE2b-256 |
7138f05e8463c0f531b4dba4701c5f5be03d097e6d09faaa2c6eb748ede71296
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xcorescanner-0.1.0-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
2b61ede86af7fc43df5c6910556909b286dde4198ef93fd09f0488e0670e72b4 - Sigstore transparency entry: 2540228153
- Sigstore integration time:
-
Permalink:
traoreera/xscanner@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/traoreera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@2b13d96f7b4d42276f47f83e8d2d5c15e79cb7bf -
Trigger Event:
workflow_dispatch
-
Statement type: