dawnpy
Core Python tooling for Dawn.
Main Dawn project: railab/dawn.
dawnpy owns:
- repository and build helpers
- descriptor parsing, validation, and generation
- object ID decoding
- shared device/runtime helpers used by other Dawn Python packages
Transport clients and the project QA runner are split into separate packages:
dawnpy-serialdawnpy-candawnpy-udpdawnpy-modbusdawnpy-tests
Install
cd tools/dawnpy
pip install -e .
Core Commands
Show help:
python -m dawnpy --help
Validate a descriptor config:
python -m dawnpy desc-valid boards/sim/sim/sim/configs/nsh_tests
Generate descriptor C++ from YAML:
python -m dawnpy desc-gen descriptor.yaml
Build a board/config:
python -m dawnpy build sim/sim/sim:nsh_tests
Build a batch of configs:
python -m dawnpy batch tools/config-build-all.txt
Development
Run the core package QA locally:
cd tools/dawnpy
tox -e py
tox -e format
tox -e flake8
tox -e type
Unit tests must be runnable from the standalone dawnpy repository without
the Dawn source tree checked out. Tests that exercise source-backed behavior
should heavily mock Dawn source discovery and header loading, or build minimal
fake Dawn source/header layouts inside temporary directories, instead of
reading real Dawn sources.
Documentation
See Dawn Python tooling for the full Dawn Python tooling documentation.
Metadata
Release files for dawnpy 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dawnpy-0.0.2.tar.gz | 187.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dawnpy-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 441.1 kB
Release files / dawnpy-0.0.2.tar.gz
| Download URL | dawnpy-0.0.2.tar.gz |
|---|---|
| Size | 187.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
617e8e969fe4bdf70bb9b5f09a2dc9e8a934490830367c4fd15d73b7013789e6
|
|
BLAKE2b-256 checksum How to use checksums |
b33714a0451c30abab8d14831805b679f69b43dfbdddc323eb1eadca20b48025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / dawnpy-0.0.2-py3-none-any.whl
| Download URL | dawnpy-0.0.2-py3-none-any.whl |
|---|---|
| Size | 253.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1af02e9c3355159929178d65c96d20779b414867984f422a23e6795723526bc
|
|
BLAKE2b-256 checksum How to use checksums |
f1994b6fb541300da641107484dfbd3d2db258c8c51523ead95086cd7032688c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|