Skip to main content

lexilla: Python bindings for Lexilla

CI PyPI License: MIT Python versions

Permissively-licensed Python bindings for Lexilla, the lexer library for Scintilla.

View on PyPI · View on GitHub

Status

See GitHub Issues for what's done and what's next.

Why this exists

Lexilla creates the lexer objects (ILexer5) that a Scintilla editor widget attaches via SCI_SETILEXER — it's a separate, Qt-free C++ library from Scintilla itself since Scintilla 5.0. This project exposes that library directly to Python. In practice, pyside6-scintilla is its only consumer, wired up via the set_lexer() convenience function (see Usage below) rather than raw SCI_SETILEXER pointer plumbing; it's kept as a separate package so this binding's release cadence and vendored Lexilla version can track upstream Lexilla releases independently of pyside6-scintilla's own release cycle — see design decisions for the full background.

Goals

lexilla aims to be:

  • MIT licensed — usable in open-source or closed-source projects freely
  • A faithful, low-level binding of Lexilla's CreateLexer/ILexer5 C++ API — not a redesign of it
  • Vendored and versioned independently of pyside6-scintilla — exposes the lexer as a raw pointer (SCI_SETILEXER-compatible), so this package can track upstream Lexilla releases on its own schedule
  • Available as pre-built wheels for Linux (x86_64, aarch64), Windows (x86_64), and macOS (arm64, x86_64)
  • Not affiliated with the Scintilla/Lexilla project

Installation

Install from PyPI:

pip install lexilla

Usage

from lexilla import Language, create_lexer
from lexilla.pyside6_scintilla import set_lexer
from pyside6_scintilla import ScintillaEdit

editor = ScintillaEdit()
lexer = create_lexer(Language.CPP)
assert lexer is not None
set_lexer(editor, lexer)

set_lexer() hands a created lexer to a pyside6-scintilla ScintillaEdit via SCI_SETILEXER, transferring ownership to it — see lexilla_highlighting for a complete example.

Versioning

Version numbers follow <Lexilla version>.<binding revision> — e.g. 5.5.0.0 is binding revision 0 for Lexilla 5.5.0. The binding revision increments for releases of this package that don't correspond to a new Lexilla version, and resets to 0 when Lexilla itself releases a new version.

Documentation

Full docs: https://borco.github.io/scintilla-py/lexilla/. lexilla lives in the scintilla-py repo, next to pyside6-scintilla, under packages/lexilla/.

Doc Contents
docs/lexilla/auditing.md How to verify the vendored Lexilla source matches upstream
docs/lexilla/bindings.md How the nanobind bindings are built, and how they're expected to grow
docs/lexilla/build.md lexilla-specific build notes (no Qt SDK, wheels, generated files)
docs/development/build.md Building the workspace, CI, wheels, and publishing
docs/lexilla/design-decisions.md Project background, goals, and design decisions
examples/ Example apps, including lexilla_highlighting
GitHub Issues Planned and in-progress work
Project board Roadmap

License

Metadata

Release files for lexilla 5.5.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lexilla 5.5.5.0
File Size Uploaded Provenance Actions
lexilla-5.5.5.0.tar.gz 1.2 MB With provenance Details for lexilla-5.5.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for lexilla 5.5.5.0
File Actions
lexilla-5.5.5.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for lexilla-5.5.5.0-cp312-abi3-win_amd64.whl
lexilla-5.5.5.0-cp312-abi3-manylinux_2_39_aarch64.whl CPython 3.12 abi3 Linux glibc 2.39+ ARM64 Details for lexilla-5.5.5.0-cp312-abi3-manylinux_2_39_aarch64.whl
lexilla-5.5.5.0-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for lexilla-5.5.5.0-cp312-abi3-manylinux_2_34_x86_64.whl
lexilla-5.5.5.0-cp312-abi3-macosx_11_0_x86_64.whl CPython 3.12 abi3 macOS 11.0+ x86-64 Details for lexilla-5.5.5.0-cp312-abi3-macosx_11_0_x86_64.whl
lexilla-5.5.5.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for lexilla-5.5.5.0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 5.8 MB

Release files / lexilla-5.5.5.0.tar.gz

Download URL lexilla-5.5.5.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fb43a14bd1cabcc88b779895c0c9d564e5c07968cc0745604d9a0c557b87fdb1
BLAKE2b-256 checksum
How to use checksums
145eada3fb7562c939d927d6234770fe6496d297086b22a9830d9891033ca29d
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 4, 2026.

Transparency log

Release files / lexilla-5.5.5.0-cp312-abi3-win_amd64.whl

Download URL lexilla-5.5.5.0-cp312-abi3-win_amd64.whl
Size 807.8 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a8941398c9f13c4119df6b422534e12c715b35a7cca10d7064a248fe28b390ce
BLAKE2b-256 checksum
How to use checksums
cf5127cba208b982fbb7dba89a487a3cfac2e427dd8da66cb487708730abdfe4
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 4, 2026.

Transparency log

Release files / lexilla-5.5.5.0-cp312-abi3-manylinux_2_39_aarch64.whl

Download URL lexilla-5.5.5.0-cp312-abi3-manylinux_2_39_aarch64.whl
Size 1.1 MB
Tags CPython 3.12 Linux glibc 2.39+ ARM64 abi3
SHA-256 checksum
How to use checksums
854dc8a170e1a5c69e37186207f3b1d1ef06355a8262259e3361db50b173d335
BLAKE2b-256 checksum
How to use checksums
9e808c69648814b2b0cd173ab0d5e5434c28909772128b425e0efe4ec8bb6451
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 4, 2026.

Transparency log

Release files / lexilla-5.5.5.0-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL lexilla-5.5.5.0-cp312-abi3-manylinux_2_34_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
d0ce4ceab81e7bddfb6ae67804b14afc02277fc51f9c7cf0512d70d9b1a3fa82
BLAKE2b-256 checksum
How to use checksums
84a86145d4ff168ab58a22ce386111a9d524981a4b1e8ebffcf21537b1678794
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 4, 2026.

Transparency log

Release files / lexilla-5.5.5.0-cp312-abi3-macosx_11_0_x86_64.whl

Download URL lexilla-5.5.5.0-cp312-abi3-macosx_11_0_x86_64.whl
Size 872.4 kB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
7608f40fc8409575bf248426272ddf09da68de376612deed8c4010d9d1826070
BLAKE2b-256 checksum
How to use checksums
85c2615f0fc70b6981dbe7cf3362a6e390b330beb475640e9c36f4b8992e11de
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 4, 2026.

Transparency log

Release files / lexilla-5.5.5.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL lexilla-5.5.5.0-cp312-abi3-macosx_11_0_arm64.whl
Size 725.6 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
722bf49735e971ebce02a5e1f6a96862b718a54517ca14d9b5c0a4bb67e43b27
BLAKE2b-256 checksum
How to use checksums
c0671f00a9724f9a472a47d308e28ceed74da100ff1cbdff4a0176dc2706fd2b
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 4, 2026.

Transparency log

Security for lexilla 5.5.5.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.

Select from 6 files

Attestation for lexilla-5.5.5.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 4, 2026.

Transparency log

A 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.

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