Skip to main content

Python library for Dawn

Project description

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-serial
  • dawnpy-can
  • dawnpy-udp
  • dawnpy-modbus
  • dawnpy-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.

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

dawnpy-0.0.2.tar.gz (187.9 kB view details)

Uploaded Source

Built Distribution

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

dawnpy-0.0.2-py3-none-any.whl (253.3 kB view details)

Uploaded Python 3

File details

Details for the file dawnpy-0.0.2.tar.gz.

File metadata

  • Download URL: dawnpy-0.0.2.tar.gz
  • Upload date:
  • Size: 187.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dawnpy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 617e8e969fe4bdf70bb9b5f09a2dc9e8a934490830367c4fd15d73b7013789e6
MD5 6061d2b68710d1d8fb81333122697d8a
BLAKE2b-256 b33714a0451c30abab8d14831805b679f69b43dfbdddc323eb1eadca20b48025

See more details on using hashes here.

File details

Details for the file dawnpy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dawnpy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 253.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dawnpy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1af02e9c3355159929178d65c96d20779b414867984f422a23e6795723526bc
MD5 717732e10dfd989435a15c0f35f46616
BLAKE2b-256 f1994b6fb541300da641107484dfbd3d2db258c8c51523ead95086cd7032688c

See more details on using hashes here.

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