skillfed

cyseq

"A Cython version of ScanCode-toolkit's licensedcode.seq"

cyseq v0.1.3 81.5K downloads/30d#14,221 on PyPI1
Permissive license Apache-2.0 Active released

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 cyseq

uv

uv add cyseq

poetry

poetry add cyseq

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software DevelopmentTopic :: Utilities

Tags

cython sequence matchingoptimized text comparisonlicense code sequencefast sequence operationsscancode licensedcodecython text processingsequence alignment library
cython-compiledperformance-optimizationtext-processing

More Software Development packages