To install the base package, run:
pip install bell-avr-librariesAdditionally, the serial and qt extras are available if you want to use
the PCC or PySide functionality.
pip install bell-avr-libraries[serial,qt]See the documentation website at https://bellflight.github.io/AVR-Python-Libraries
It's assumed you have a version of Python installed from
python.org that is the same or newer as
defined in the .python-version file.
First, install Poetry and VS Code Task Runner:
python -m pip install pipx --upgrade
pipx ensurepath
pipx install poetry
pipx install vscode-task-runner
# (Optionally) Add pre-commit plugin
poetry self add poetry-pre-commit-pluginNow, you can clone the repo and install dependencies:
git clone https://github.com/bellflight/AVR-Python-Libraries
cd AVR-Python-Libraries
vtr installRun
poetry shellto activate the virtual environment.
You can now produce a package with vtr build, which will automatically
also run vtr build-code.
To add new message definitions, add entries to the bell/avr/mqtt/asyncapi.yml file.
This is an AsyncAPI definition,
which is primarily JSONSchema with some association
of classes and topics.
The generator that turns this definition file into Python code is the homebrew build.py, so double-check that the output makes sense.
To generate the documentation, vtr build-code-docs.
This requires that Node.js is installed.