Skip to main content

dau-driver

Host I/O for DAU devices: discovery, registers, DMA, and job execution over XDMA

Build Status codecov License PyPI

dau-driver is the host side of a DAU device. It discovers DAU-compatible XDMA endpoints, reads the canonical register block, decodes the device's capability advertisement, moves data over H2C/C2H DMA, allocates device storage, and runs the register-contract jobs the shells expose. All device semantics (register offsets, stream framing, capability words, record layouts) come from dau-core; this package owns transport and execution only.

  • Linux hosts use the Xilinx XDMA character devices under /dev.
  • macOS hosts use a DriverKit-based XDMA system extension through IOKit user-client calls, for register access and full H2C/C2H DMA.
from pathlib import Path

from dau_driver import discover_devices
from dau_driver.testing import FakeTransport, fake_device

devices = discover_devices(memory_bytes=None)      # the XDMA devices under /dev, read-only; pass the board's memory size to write
device = devices[0] if devices else fake_device(Path("."), FakeTransport())
device.check_bar_health()                          # all-ones reads fail here, not later
print(device.name, device.backend)                 # xdma0 linux-xdma
print(device.capabilities.dma)                     # alignment / max-transfer constraints
print(device.read_register_block_snapshot())       # the whole identity block
print(device.read_status())                        # the status word and last error

The Python execution paths (discovery, registers, transfers, storage, the scan, pipeline and fleet runners) also run against the in-memory fake transport above, and that is how the test suite exercises them. The kernel driver, the DriverKit extension and the native extension are tested on hardware.

Documentation

The full documentation is at dau-dev.github.io/dau-driver.

The examples directory holds end-to-end host flows (record-batch round trip, stream aggregation, the OHLCV pipeline job) that run against real hardware.

Installation

Requires Python 3.12 or newer.

pip install dau-driver

Wheels are published for CPython 3.12 and 3.13 on Linux (x86_64 and aarch64) and macOS (arm64). Elsewhere pip builds the small native extension from source, which needs a C++ toolchain.

On a host with a board, load the Linux XDMA module from kernel/linux-xdma/ or the macOS DriverKit extension from kernel/macos-xdma/; each has its own build and load instructions. Without one, the package still imports and runs against its fake transport. Whoever can open the character devices (Linux) or the user client (macOS) can read and write the card's memory and registers, so the operating system's device permissions are the access control.

License

Apache-2.0, except kernel/linux-xdma/, which is Xilinx's XDMA reference driver under its own Dual BSD/GPL terms. See kernel/README.md.

Metadata

Release files for dau-driver 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dau-driver 0.5.0
File Size Uploaded Provenance Actions
dau_driver-0.5.0.tar.gz 254.5 kB Without provenance Details for dau_driver-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dau-driver 0.5.0
File Actions
dau_driver-0.5.0-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for dau_driver-0.5.0-cp313-abi3-win_amd64.whl
dau_driver-0.5.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for dau_driver-0.5.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
dau_driver-0.5.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 abi3 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for dau_driver-0.5.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
dau_driver-0.5.0-cp313-abi3-macosx_11_0_arm64.whl CPython 3.13 abi3 macOS 11.0+ ARM64 Details for dau_driver-0.5.0-cp313-abi3-macosx_11_0_arm64.whl
dau_driver-0.5.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for dau_driver-0.5.0-cp312-abi3-win_amd64.whl
dau_driver-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for dau_driver-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
dau_driver-0.5.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for dau_driver-0.5.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
dau_driver-0.5.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for dau_driver-0.5.0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 2.6 MB

Release files / dau_driver-0.5.0.tar.gz

Download URL dau_driver-0.5.0.tar.gz
Size 254.5 kB
Tags Source
SHA-256 checksum
How to use checksums
00df2255475e7793b1bb381a4ed2a6b1e1c14af50191694ff57a746fab7db3ef
BLAKE2b-256 checksum
How to use checksums
4855791eb3d369f0ca07a8c6f51e37029c304dd62641db7f7faa48afb6bd7129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp313-abi3-win_amd64.whl

Download URL dau_driver-0.5.0-cp313-abi3-win_amd64.whl
Size 347.6 kB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
64ca27ae0a13d5bd7e7b0117dc70f44ce565e5f3db753fed3ee538aa6f49759b
BLAKE2b-256 checksum
How to use checksums
b257f4413204c43594097ef90a77996e8e3a0a405da6927dad379f106b18b99d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.5.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 274.2 kB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
e7be33ed5172f9b31cb8373f6e854a376f18bbda11f331254f472efd1ed7cd43
BLAKE2b-256 checksum
How to use checksums
4931d9a9336ef4a6f2c4a8ad50e79a977fef426f18f38247b8c7f887ea026d1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.5.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 273.1 kB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a9e398f12c7fedaeae3330d1d837983751b17518c35bc78cd0ac0c52b1601fd4
BLAKE2b-256 checksum
How to use checksums
c3c36e6f9e8cc37aacb9678e7a707685d150b5167905c200f2942c458bfea1ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp313-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.5.0-cp313-abi3-macosx_11_0_arm64.whl
Size 267.8 kB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c38ff952b33bf9306033a1e68fe9006c4838c8249fbe5bfdf9566e78638fae66
BLAKE2b-256 checksum
How to use checksums
c936d41e9563282edd89173bfaa753d31444961f2b72dc2fb16ebd13cae58dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp312-abi3-win_amd64.whl

Download URL dau_driver-0.5.0-cp312-abi3-win_amd64.whl
Size 347.7 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0640e30db6b6e4c038f5ee323f61fa8baf7b7c035344583fef813bed249c1fcd
BLAKE2b-256 checksum
How to use checksums
4774d8795870603c00a37fa8098401b007b9a3b72c5c89d026e6443bcb9bbc61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 274.2 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2ae13c6e9912d6eacca5b66073f7b3c47e50bc1e2f20bd54d363bf9b3ed25a81
BLAKE2b-256 checksum
How to use checksums
06026cf5d5ca0ff704d0238aaa2039429e3b6c20c21a5a3dadd652c06e059ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.5.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 273.1 kB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
4bd6b573c754f0382b2da3a0c346c667f5f70767a43395ae0b2be0df2c9fba9b
BLAKE2b-256 checksum
How to use checksums
5a46fa93da96aa772d566a5299fa75b74bdb20bcd4583680dd023e77b285b1ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.5.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
Size 267.8 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1692b551f3aa8920d9cb4ca5207df20327f6e24486ffd7042f30ca241f9ccc49
BLAKE2b-256 checksum
How to use checksums
7b359e4b30c1f0311bb96739bbf3a93085a851a2e58bb6794786628459ff2aa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for dau-driver 0.5.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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