Python LabVIEW File Parser
Project description
pylavi
Python LabVIEW resource file parser
Description
This project was inspired by pylabview by mefistotelis (which was originally forked from pylabview by jcreigh). The idea was to reverse engineer the LabVIEW VI file format. This project is designed to be a reboot, taking the incredible discovery done by the pylabview projects and simplifying the structure of the code.
This starts with a conceptual model of the LabVIEW resource file and treats the binary resources files as just collections of resources. Once the API for working with the file format itself is solidified, then code can be added to work with resources of specific types.
Along the way discoveries will be documented.
Using to validate VIs
Install
pip3 install pylavi
Validate VIs
vi_validate --path lv_source --no_beta --gt 21.0
usage: vi_validate [-h] [-l LT] [-g GT] [-e EQ] [-r] [-b] [-a] [-d] [-i] [-p PATH] [-s SKIP] [-x EXTENSION] [-q]
Validates LabVIEW resource files
optional arguments:
-h, --help show this help message and exit
-l LT, --lt LT LabVIEW version must be less than this
-g GT, --gt GT LabVIEW version must be greater than this
-e EQ, --eq EQ LabVIEW version must this
-r, --no-release LabVIEW version must not be release
-b, --no-beta LabVIEW version must not be beta
-a, --no-alpha LabVIEW version must not be alpha
-d, --no-development LabVIEW version must not be development
-i, --no-invalid LabVIEW version must be a valid phase
-p PATH, --path PATH Path to scan for files (or a file path) (defaults to current directory)
-s SKIP, --skip SKIP Path to not scan for files (or a file to ignore)
-x EXTENSION, --extension EXTENSION
File extensions to evaluate (defaults to all known)
-q, --quiet Reduce the output (multiple times reduces output more)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.