simdsel
A gigabytes fast HTML parser and selector, powered by Rust and SIMD.
simdsel is the Python binding for simdhtml.
It keeps the parsel selector surface while replacing the parsing and selection
core with a SIMD-accelerated Rust implementation, so scraping code keeps working
with one changed import.
Install
pip install simdsel
Wheels are CPython abi3 (Python ≥ 3.9) and self-contained: no Rust toolchain, no libxml2, no lxml.
Quickstart
from simdsel.parsel import Selector
html = """
<div class="item" data-id="1"><h2>First & best</h2><a href="/one">one</a></div>
<div class="item" data-id="2"><h2>Second</h2><a href="/two">two</a></div>
"""
sel = Selector(text=html)
sel.css(".item h2::text").getall() # ['First & best', 'Second']
sel.css(".item a::attr(href)").getall() # ['/one', '/two']
sel.xpath("//div[@data-id='2']/h2/text()").get() # 'Second'
[item.attrib["data-id"] for item in sel.css(".item")] # ['1', '2']
parsel compatibility
from simdsel.parsel import Selector mirrors parsel.Selector for the subset
scraping code actually uses:
| API | |
|---|---|
css(query), xpath(query) |
return a SelectorList |
::text, ::attr(name) |
pseudo-elements |
.get(), .getall() |
single value / list |
.re(pattern), .re_first(pattern) |
regex extraction |
.attrib, .text, .base_url, .namespaces |
|
len(), indexing, iteration, + |
list behaviour |
Selector(text=..., base_url=..., type="html") |
constructor |
type="xml"/"json" and root= (an lxml node) raise NotImplementedError: only
HTML is parsed.
Selector(text=..., mode="spec") opts into specification-shaped tree
construction (98% WPT conformance) instead of the fast error-recovering default
mode="none".
Notes
simdsel.__version__reports the build version.- Elements are backed by a flat preorder tape, so iteration and
len()are cheap and no lxml node objects are allocated.
Links
- Source, docs and benchmark methodology: https://github.com/xbwwj/simdhtml
- Benchmarks: https://github.com/xbwwj/simdhtml#benchmarks
- Issues: https://github.com/xbwwj/simdhtml/issues
License
MIT or Apache 2.0 at your option.
Metadata
Release files for simdsel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simdsel-0.1.0.tar.gz | 160.1 kB | With provenance | Details for simdsel-0.1.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| simdsel-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for simdsel-0.1.0-cp39-abi3-win_amd64.whl |
| simdsel-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details for simdsel-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| simdsel-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details for simdsel-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| simdsel-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for simdsel-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
| simdsel-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details for simdsel-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
Total release size: 3.8 MB
Release files / simdsel-0.1.0.tar.gz
| Download URL | simdsel-0.1.0.tar.gz |
|---|---|
| Size | 160.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b4e07f8e003ba9271ce3f1ae609d4dc2ef7e2e912a9e7bd95892503d0c2a354
|
|
BLAKE2b-256 checksum How to use checksums |
4e5b5205ef622cd43e1d509a48b639e56c5ade994d8f244966a0d7bd4d54554b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / simdsel-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | simdsel-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 664.6 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9b1d42015bbb88d0b0c77c86e8945cbeee5b67942be47291d274e3aa94b917eb
|
|
BLAKE2b-256 checksum How to use checksums |
24d0e7c6ce1dcb18597c3476246f9e51bc4594edee0f9aa207e249d1e3274af1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / simdsel-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | simdsel-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 772.7 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fad0b3dd2c36256b2af38e177f976df93b46221fc407f6c0de3b507774ca78d8
|
|
BLAKE2b-256 checksum How to use checksums |
70aa1a928db41f97ebcd1ae20d2365cc289d57d7525620be9d988002610d2029
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / simdsel-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | simdsel-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 745.1 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
83274e6b3a2c247806fa24811a1beb7dd4d1736bed0b28f625c3656fa6b0a151
|
|
BLAKE2b-256 checksum How to use checksums |
b93af16a9af2d26ab4fb12d7d9f06dd16030d496293e8fe035d275feec1f5964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / simdsel-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | simdsel-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 704.9 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
22a9a28cca9a8da78c4d3f72b9c697881fee0849b499e4b79eae4e3d2cfd4fa7
|
|
BLAKE2b-256 checksum How to use checksums |
f4bf1825770e46dbcdf8d6376dc270df9b2ec3cc18da4c13048ca25230e66d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / simdsel-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | simdsel-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 716.4 kB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f2a3c1bc81a5bfda9c2ef73345f4ee2b4a656d2d48d3387708e962f8b0fa526d
|
|
BLAKE2b-256 checksum How to use checksums |
41931d157e964fbe92cd016eecc6744d006c9c93afb99793a2df711185863416
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logSecurity for simdsel 0.1.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 6 files in this release have been uploaded with provenance metadata.
Attestation for simdsel-0.1.0.tar.gz
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 Nov 25, 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.