Drivers and examples for using the BrickPi3 in Python
Project description
BrickPi3 Python Package
Modern Python package for BrickPi3 hardware drivers, configured using pyproject.toml.
Installation
From PyPI (Recommended)
Once published, install with:
pip install brickpi3
On Raspberry Pi OS, this automatically gets optimized ARM wheels from piwheels.
From Source
cd Software/Python
pip install .
Development Installation
For development with editable install:
cd Software/Python
pip install -e .
Package Structure
Software/Python/
├── pyproject.toml # Modern package configuration (PEP 517/518)
├── MANIFEST.in # Additional files to include in distribution
├── brickpi3.py # Main driver module
├── scripts/ # Install scripts
├── troubleshooting/ # Troubleshooting scripts
└── examples/ # Example scripts
Configuration Details
pyproject.toml
This file contains all package metadata:
- Project metadata: name, version, description, authors
- Dependencies:
spidevfor SPI communication - Python requirements: >=3.7
- Classifiers: Platform, development status, audience
- URLs: Homepage, documentation, repository, bug tracker
Version Management
Version is specified in pyproject.toml:
[project]
version = "4.0.9"
Update this for each release before building.
Building
Build source distribution and wheel:
cd Software/Python
python -m build
This creates:
dist/brickpi3-4.0.9tar.gz(source distribution)dist/brickpi3-4.0.9-py3-none-any.whl(wheel)
Publishing
See PYPI_PUBLISHING.md for detailed instructions on publishing to PyPI.
Requirements
- Python: 3.7 or higher
- Platform: Raspberry Pi OS (Linux only)
- Hardware: BrickPi3 board
- Dependencies:
spidev- SPI interface (automatically installed)
License
MIT License - see LICENSE.md
Links
- Homepage: https://www.dexterindustries.com/BrickPi/
- Documentation: https://www.dexterindustries.com/brickpi3-tutorials-documentation/
- Repository: https://github.com/DexterInd/BrickPi3
- PyPI: https://pypi.org/project/brickpi3/ (once published)
- PyWheels: https://www.piwheels.org/project/brickpi3/ (automatic after PyPI)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brickpi3-4.0.9.tar.gz.
File metadata
- Download URL: brickpi3-4.0.9.tar.gz
- Upload date:
- Size: 78.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abeeac8635f29b431a295a4c0ac629da859c74ce0b6be6008d1a29047f3511c4
|
|
| MD5 |
335b0303196e7441e180d636d66a4ad7
|
|
| BLAKE2b-256 |
e0837f0e3fc6f0c9c9e4881a43499670861b18278af252f06def7c15daf0da82
|
Provenance
The following attestation bundles were made for brickpi3-4.0.9.tar.gz:
Publisher:
publish-pypi.yml on DexterInd/BrickPi3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brickpi3-4.0.9.tar.gz -
Subject digest:
abeeac8635f29b431a295a4c0ac629da859c74ce0b6be6008d1a29047f3511c4 - Sigstore transparency entry: 992111934
- Sigstore integration time:
-
Permalink:
DexterInd/BrickPi3@f4d4ede223e23299684c3c910770a38ae6b926ab -
Branch / Tag:
refs/tags/v4.0.9 - Owner: https://github.com/DexterInd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f4d4ede223e23299684c3c910770a38ae6b926ab -
Trigger Event:
push
-
Statement type:
File details
Details for the file brickpi3-4.0.9-py3-none-any.whl.
File metadata
- Download URL: brickpi3-4.0.9-py3-none-any.whl
- Upload date:
- Size: 98.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dae72d468438c5ad1437613fff0afb8db3c6233aeb0db54011cf3bb4721187e9
|
|
| MD5 |
104848d96ef0b449f1035fd3b2bb4880
|
|
| BLAKE2b-256 |
b679f6d4be999057fdeea464e645635e26628b98f15f9692789504cf441a83dd
|
Provenance
The following attestation bundles were made for brickpi3-4.0.9-py3-none-any.whl:
Publisher:
publish-pypi.yml on DexterInd/BrickPi3
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brickpi3-4.0.9-py3-none-any.whl -
Subject digest:
dae72d468438c5ad1437613fff0afb8db3c6233aeb0db54011cf3bb4721187e9 - Sigstore transparency entry: 992111938
- Sigstore integration time:
-
Permalink:
DexterInd/BrickPi3@f4d4ede223e23299684c3c910770a38ae6b926ab -
Branch / Tag:
refs/tags/v4.0.9 - Owner: https://github.com/DexterInd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f4d4ede223e23299684c3c910770a38ae6b926ab -
Trigger Event:
push
-
Statement type: