Skip to main content

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: spidev for 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.7"

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.7tar.gz (source distribution)
  • dist/brickpi3-4.0.7-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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brickpi3-4.0.7.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brickpi3-4.0.7-py3-none-any.whl (98.8 kB view details)

Uploaded Python 3

File details

Details for the file brickpi3-4.0.7.tar.gz.

File metadata

  • Download URL: brickpi3-4.0.7.tar.gz
  • Upload date:
  • Size: 78.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brickpi3-4.0.7.tar.gz
Algorithm Hash digest
SHA256 a54654c24c0dc0ce98fadc9c44ae2802fac2511ff11bdcbdcbbd54e31c1c0f1c
MD5 12e80932f056b8d6bcd799a157862f3e
BLAKE2b-256 c629b5dbb9ffebaf468830bf25baabef2087936111ff6235d19d98746c869b10

See more details on using hashes here.

Provenance

The following attestation bundles were made for brickpi3-4.0.7.tar.gz:

Publisher: publish-pypi.yml on DexterInd/BrickPi3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brickpi3-4.0.7-py3-none-any.whl.

File metadata

  • Download URL: brickpi3-4.0.7-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

Hashes for brickpi3-4.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e4552c7e640eeb4f6aab7a9d505a2006c463638a482b01e560ab7c6d484451
MD5 69312c470b54223df3dad1aae72edf2e
BLAKE2b-256 3986b613b5a4101765b5b42edd3bb38a2fd65c0b39b51944430c9f4c39d3331a

See more details on using hashes here.

Provenance

The following attestation bundles were made for brickpi3-4.0.7-py3-none-any.whl:

Publisher: publish-pypi.yml on DexterInd/BrickPi3

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page