Common Python libraries used by parts of Bell AVR
Project description
AVR-Python-Libraries
Install
To install the base package, run:
pip install bell-avr-libraries
Additionally, the serial
and qt
extras are available if you want to use
the PCC or PySide functionality.
pip install bell-avr-libraries[serial,qt]
Usage
See the documentation website at https://bellflight.github.io/AVR-Python-Libraries
Development
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-plugin
Now, you can clone the repo and install dependencies:
git clone https://github.com/bellflight/AVR-Python-Libraries
cd AVR-Python-Libraries
vtr install
Run
poetry shell
to 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bell_avr_libraries-0.2.0a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ec077c30abddafc31900f9e9630d53d310fc9b8bfd355e977a6749c5d9cb89 |
|
MD5 | adef23a1489ae7360b6b216ff292e20e |
|
BLAKE2b-256 | 55fd4d0b9e5270b9ee19f6de736bbe6b9e0481bc359bfc96fa7761165735d9d6 |
Hashes for bell_avr_libraries-0.2.0a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9256ed5e75bca0738500cc4436c96d459cb363bf2259b23be9644c3f223c0a |
|
MD5 | d345ef008ab691457d693dcd7d174527 |
|
BLAKE2b-256 | 7398c381ba315958e1226d95e1b5e3fdf176e657e30e47f6f68f15247164adbd |