Adafruit Python lgpio
Pre-built wheels for lgpio covering Python 3.13+
on aarch64 and armv7l Linux (Raspberry Pi, BeagleBoard, Odroid, and similar SBCs).
Upstream lgpio ships wheels for Python 3.9–3.12 on PyPI, but has no pre-built wheels for Python 3.13 and later. Building from source requires SWIG, which most users don't have installed. This package fills that gap.
It is published to PyPI as adafruit-lgpio and is a drop-in replacement for lgpio
on Python 3.13+.
Usage
In your requirements.txt (example from Adafruit_Blinka):
lgpio>=0.2.2.0; sys_platform=='linux' and python_version<'3.13' and platform_machine in ('aarch64', 'armv7l')
adafruit-lgpio>=0.2.2.0; sys_platform=='linux' and python_version>='3.13' and platform_machine in ('aarch64', 'armv7l')
import lgpio # same import as upstream lgpio
Version scheme
The version tracks upstream lgpio exactly (e.g. 0.2.2.0).
Source
The C extension source (src/, lgpio.i, lgpio_extra.py) is vendored from
joan2937/lg under the Unlicense.
Updating for a new lgpio release
- Update the vendored source files from upstream.
- Bump
versioninpyproject.tomlto match upstream. - Commit, create a GitHub release tagged
vX.Y.Z.W— CI builds and publishes automatically.
Metadata
Release files for adafruit-lgpio 0.2.2.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 | |
|---|---|---|---|
| adafruit_lgpio-0.2.2.0.tar.gz | 91.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adafruit_lgpio-0.2.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.17+ ARM64 | Details |
Total release size: 458.1 kB
Release files / adafruit_lgpio-0.2.2.0.tar.gz
| Download URL | adafruit_lgpio-0.2.2.0.tar.gz |
|---|---|
| Size | 91.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e3f1c85e094613b20ddc23a809741933842d6e293e03778e309a232a1105413
|
|
BLAKE2b-256 checksum How to use checksums |
27dc605b0f7869b63652529e2fc6d6757230594e4ad0bc0879c2e67b7a1f5ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / adafruit_lgpio-0.2.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | adafruit_lgpio-0.2.2.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 366.7 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
ce1461d85bf824966edd3c2534df40f383acc2e0bd343ac4341254dfa1ddde76
|
|
BLAKE2b-256 checksum How to use checksums |
ae742a6abafde021c99d9f328822a4b5c540a5e0bc5a2d7a0b5c682939e99836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|