Skip to main content

DPEA_DPi

Python drivers for the DPEA Pi family of circuit boards developed by Stan Reifel.

Installation

Add the package to an exhibit project:

uv add dpeaDPi

On the DPEA Raspberry Pi image, this also installs rpi-lgpio, which provides the RPi.GPIO module used by DPiComputer. The image includes the native build dependencies required by lgpio on Python 3.13.

RS485 drivers do not open /dev/serial0 when they are imported or constructed. The default shared network opens it when the first command is sent. Tests and applications can pass a configured DPiNetwork or another compatible network object into a board constructor. The package does not automatically select a simulated hardware backend.

DPiComputer also initializes GPIO and I2C on first use. Its constructor accepts compatible gpio and i2cBus objects for integration tests.

Development

Install the locked project and development dependencies:

uv sync --locked --all-groups

Run the tests and build both package distributions:

uv run --locked pytest
uv build --no-sources

Project metadata, runtime dependencies, and the next release version live in pyproject.toml. uv.lock is committed for reproducible development and CI.

Releases

Merging a new package version into main runs the full test and package checks. CI creates a tag such as v1.0.0 from the version in pyproject.toml, then publishes the exact artifacts to PyPI with Trusted Publishing. No manual tag or PyPI upload is required.

Configure the PyPI trusted publisher once with these values:

  • Owner: dpengineering
  • Repository: DPEA_DPi
  • Workflow: publish.yml
  • Environment: pypi

No PyPI token is stored in GitHub.

Download files

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

Source Distribution

dpeadpi-1.0.1.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

dpeadpi-1.0.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file dpeadpi-1.0.1.tar.gz.

File metadata

  • Download URL: dpeadpi-1.0.1.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dpeadpi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 43588d72c517d8b8a3105d1568871c8b39d3538262ff7cdd07875441c639a931
MD5 cc61a234cab8eae30385fa925e0c0d5d
BLAKE2b-256 884ed3e41f7a9a0389dc4d49685c57374f66d7673dbccac059504e50b7dcd115

See more details on using hashes here.

Provenance

The following attestation bundles were made for dpeadpi-1.0.1.tar.gz:

Publisher: publish.yml on dpengineering/DPEA_DPi

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

File details

Details for the file dpeadpi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dpeadpi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dpeadpi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd938710e4f065f97eeb39ee4d668f5a689be63c80172390ad9101bbb2011726
MD5 e2bae84345e6b1b3ee18db7b7d12dfe4
BLAKE2b-256 0e3038ed2a03cfa13bd768d847f04efb8f9418eeb5ac799f6628cb05334dad1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dpeadpi-1.0.1-py3-none-any.whl:

Publisher: publish.yml on dpengineering/DPEA_DPi

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

Release history Release notifications | RSS feed

2.0.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

This release

1.0.1 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

1 file

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