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

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.0.2
File Size Uploaded Provenance Actions
lexilla-5.5.0.2.tar.gz 1.1 MB With provenance Details for lexilla-5.5.0.2.tar.gz

Built distributions (wheels)

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

Total release size: 5.8 MB

Release files / lexilla-5.5.0.2.tar.gz

Download URL lexilla-5.5.0.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
7fd2ba5df8847f89f17a9c1a964999cfc55fa829b8cadb225374c27af2dd4f92
BLAKE2b-256 checksum
How to use checksums
a4f02ab97e984ffa79b8d846ddf90da83ec6fb771d7ed55e95e354bcd5a0ff40
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 3, 2026.

Transparency log

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

Download URL lexilla-5.5.0.2-cp312-abi3-win_amd64.whl
Size 806.4 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c8a522b8b690f24d0347012facb6bfa7ac7faa42a445257852b461596334dd4c
BLAKE2b-256 checksum
How to use checksums
6b1773a86971363ea5246f7a7893e14ff4a797516685e7456745c46970a783c9
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 3, 2026.

Transparency log

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

Download URL lexilla-5.5.0.2-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
bd7d364dc5f8f6c81463c61c7255fb41d77645716db6a50c861802f5cb1c4b06
BLAKE2b-256 checksum
How to use checksums
d58a85f887a37f80dcdff43e633acbeb8692663055be30903765f4133eff78e0
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 3, 2026.

Transparency log

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

Download URL lexilla-5.5.0.2-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
ceaaffaa015613a046e22eea251ceefcd9fc5f945690978aa25fe813286cdb28
BLAKE2b-256 checksum
How to use checksums
3ee8dd572bf97c99a7eca42a8f7a4797d4634ef162f00397c287de9a2836e415
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 3, 2026.

Transparency log

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

Download URL lexilla-5.5.0.2-cp312-abi3-macosx_11_0_x86_64.whl
Size 865.5 kB
Tags CPython 3.12 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
bacd4d989fa6b16ab1aa9cd3e47b08d01f3837a4c1bd6cc6116074d3eb52f52f
BLAKE2b-256 checksum
How to use checksums
08b479d4fa74679427fea17a2e478f02acc9280f4a44b9af52e3ef52c4257e4a
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 3, 2026.

Transparency log

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

Download URL lexilla-5.5.0.2-cp312-abi3-macosx_11_0_arm64.whl
Size 721.8 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c4f66dda22637ae25f803496d4e6d06538a3b48fdbb806b25ee0cff4cf881d58
BLAKE2b-256 checksum
How to use checksums
f52146ac062e1f5fee7387a5a49056e42051836c839c6afcce3c54f7e837c27a
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 3, 2026.

Transparency log

Security for lexilla 5.5.0.2

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.0.2.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 3, 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