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()                       # the XDMA devices under /dev, when a board is installed
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.3.1

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.3.1
File Size Uploaded Provenance Actions
dau_driver-0.3.1.tar.gz 252.5 kB Without provenance Details for dau_driver-0.3.1.tar.gz

Built distributions (wheels)

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

Total release size: 2.6 MB

Release files / dau_driver-0.3.1.tar.gz

Download URL dau_driver-0.3.1.tar.gz
Size 252.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2375eb2e6307275ec50ca1116bab6a9decd19b4c68eb9b7fe7f35a5614e5a364
BLAKE2b-256 checksum
How to use checksums
6cf059e638ad835b74d34208ba450cc11ebd72e181a1153ac8d639b130f5e39d
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.3.1-cp313-abi3-win_amd64.whl

Download URL dau_driver-0.3.1-cp313-abi3-win_amd64.whl
Size 348.5 kB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a6803ba5ba5c1b96971e3d9012017e9bbe702cdcb9857358644af58f29fa3925
BLAKE2b-256 checksum
How to use checksums
a2ef6607b5376901dd3e92f67d1cb5dcd71d6ed5c92af127755ab2c5af4fa5dd
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.3.1-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.3.1-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 271.8 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
55b314267984a9fb1283de0371f140d06df6e4166a7694f8253455f1b9fcc4f1
BLAKE2b-256 checksum
How to use checksums
a589d3377cfbfad5af14f00946a872f33391f81d239fdd98df53a543cd852059
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.3.1-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.3.1-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 270.7 kB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
0c60c9b734c6fb5081367770747f043cd0623bd5a49954cad3884649ae4c5fe1
BLAKE2b-256 checksum
How to use checksums
6daf086cecfaa28704c3d3268b35027f3e81e87db57b15fc744e64c2dbeb7684
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.3.1-cp313-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.3.1-cp313-abi3-macosx_11_0_arm64.whl
Size 265.4 kB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eef8f23261f308f01d2b06542a08d5ce199f2196639f2afee3b904148586f9d3
BLAKE2b-256 checksum
How to use checksums
0db449f18c2dd01d57ace99b9ef8a33a7140ccd934206f0565b0cee54095eaf3
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.3.1-cp312-abi3-win_amd64.whl

Download URL dau_driver-0.3.1-cp312-abi3-win_amd64.whl
Size 348.5 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
f7415eacdc01f9e49488d1ee4da18bda4396cc3531262a85f0faea0cc9dc56a6
BLAKE2b-256 checksum
How to use checksums
5632b938f480be388f53a391eef2ecdd4ef07817040badbf30b88cfe47327593
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.3.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.3.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 271.8 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
71e5252c55c51fcaf13905b4228dc9aae141dfc075af184839a990c0d01b4ece
BLAKE2b-256 checksum
How to use checksums
5dfd1ebfe334d4f44290aec41d7b0d5ae433acef8a1b2aa1152f3620eaf3398c
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.3.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.3.1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 270.7 kB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
60e2851dac94e0586de06a485f9ab3fbe943bd529b8dc30c1e27817a2da05454
BLAKE2b-256 checksum
How to use checksums
e2d3de541d5c2bb9d4ea7c29661c869c0ed756326c39eab40a70fcf4b3c2f92f
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.3.1-cp312-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.3.1-cp312-abi3-macosx_11_0_arm64.whl
Size 265.4 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
12e2b5d1fc015d72d661d21c98937ef4d8a72375fddd638e26328debac5bf38c
BLAKE2b-256 checksum
How to use checksums
61edadc5e23cb4c3f21dcafdacf36a0453ea5ce6820524688ec38ebd0246f08e
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.3.1

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