cyseq
"A Cython version of ScanCode-toolkit's licensedcode.seq"
What it is and what it does
cyseq is a Cython-compiled library that accelerates sequence matching and comparison operations originally developed as part of ScanCode-toolkit's license detection engine. It takes computationally intensive sequence algorithms and compiles them to C for faster execution, making it suitable for applications that perform repeated or large-scale text comparison tasks.
The package targets developers working with license detection, text similarity analysis, or other sequence-based matching problems where the pure-Python implementation would be a bottleneck. It has no runtime dependencies beyond Python itself and is distributed as pre-built wheels for Python 3.10+ across major platforms, reducing installation complexity.
Use it for:
- Accelerating license text matching in software composition analysis or compliance tools.
- Speeding up sequence comparison operations in large-scale text processing pipelines.
- Replacing the pure-Python ScanCode licensedcode.seq module in performance-sensitive applications.
- Embedding optimized sequence matching in tools that analyze code or document similarity at scale.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
cyseq provides a Cython-optimized implementation of sequence matching and comparison operations originally from ScanCode-toolkit's licensedcode module, designed for performance-critical text processing tasks.
Yes, if you need the specific sequence operations cyseq provides and performance is a concern. The package is actively maintained, carries a permissive license, has no external dependencies, and offers pre-built wheels for common environments. However, verify that its API matches your use case and that the performance gain justifies the compiled-dependency overhead for your workload.
Install
cyseq on PyPI
pip
pip install cysequv
uv add cyseqpoetry
poetry add cyseqInstalling cyseq
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms. The package is actively maintained with recent commits and carries a permissive Apache-2.0 license, though it is early in its release history (first released 2025-07-31).
License in practice
Apache-2.0 is permissive and imposes minimal restrictions on use, modification, and distribution. You may use this in commercial or proprietary projects with only attribution requirements.
Quickstart
pip install cyseq
import cyseq
# Use sequence matching operations from the module
Requires Python 3.10 or later. Pre-built wheels are available for common platforms (macOS, Linux, Windows) and architectures (x86_64, aarch64).
Verify before relying
- What specific sequence operations or APIs does cyseq expose beyond the original ScanCode implementation?
- Performance improvement magnitude compared to the pure-Python ScanCode version.
- Whether this is intended as a drop-in replacement or requires API changes in calling code.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 109 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,513/month — #14,221 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cyseq-0.1.3-cp310-cp310-macosx_10_9_universal2.whl; cyseq-0.1.3-cp310-cp310-macosx_11_0_arm64.whl; cyseq-0.1.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; cyseq-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; cyseq-0.1.3-cp310-cp310-musllinux_1_2_aarch64.whl; cyseq-0.1.3-cp310-cp310-musllinux_1_2_x86_64.whl; cyseq-0.1.3-cp310-cp310-win_amd64.whl; cyseq-0.1.3-cp311-cp311-macosx_10_9_universal2.whl; cyseq-0.1.3-cp311-cp311-macosx_11_0_arm64.whl; cyseq-0.1.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; cyseq-0.1.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; cyseq-0.1.3-cp311-cp311-musllinux_1_2_aarch64.whl; cyseq-0.1.3-cp311-cp311-musllinux_1_2_x86_64.whl; cyseq-0.1.3-cp311-cp311-win_amd64.whl; cyseq-0.1.3-cp312-cp312-macosx_10_13_universal2.whl; cyseq-0.1.3-cp312-cp312-macosx_11_0_arm64.whl; cyseq-0.1.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl; cyseq-0.1.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl; cyseq-0.1.3-cp312-cp312-musllinux_1_2_aarch64.whl; cyseq-0.1.3-cp312-cp312-musllinux_1_2_x86_64.whl
Keywords: utilities
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
scancode-toolkitScanCode Toolkit detects licenses, copyrights,…
permissive · top 15,000 on PyPI
pyxDamerauLevenshteinComputes Damerau-Levenshtein edit distance…
permissive · top 15,000 on PyPI
monotonic-alignment-searchFinds the most probable alignment between a…
permissive · top 15,000 on PyPI
DistanceComputes distance metrics (Levenshtein,…
copyleft · top 15,000 on PyPI
cydifflibCyDifflib provides a faster, drop-in…
permissive · top 15,000 on PyPI
pylcsComputes longest common subsequence, longest…
permissive · top 15,000 on PyPI
cyscaleCython-accelerated encoder and decoder for the…
permissive · top 15,000 on PyPI
editdistanceComputes the edit distance (Levenshtein…
permissive · top 5,000 on PyPI
scanossScanoss provides a Python library and CLI tool…
permissive · top 15,000 on PyPI
cyvcf2cyvcf2 is a Cython wrapper around htslib that…
permissive · top 15,000 on PyPI