Automated documentation generator for National Instruments TestStand™ sequence files
Project description
py-teststand-autodoc
py-teststand-autodoc is an automated rich documentation generator from National Instruments TestStand™ sequence files.
Table of contents
- py-teststand-autodoc
📖 Overview
This project was inspired by Wovalab Antidoc Add-on for TestStand, which is built for the LabVIEW-TestStand ecosystem, because I missed option to easly integrate with Markdown static site generators like mentioned in Static Site Generators and easier integration with actual Python-based tooling.
It can be used in two ways:
- As a CLI tool
- As a Python library (via API - see examples)
⚠️Transparency
This generator does not reverse-engineer or natively parse .seq files:
uses my other py-teststand project to interact with TestStand™ COM API.
This means you need a valid TestStand™ installation and a proper TestStand™ License on the machine running the code.
🚧 Project Status
This is a hobby project, maintained on a best-effort basis and not yet under active full-time development ahead of the first release. There is no fixed release schedule or formal support, but feel free to get in touch.
[!NOTE] Workspaces not currently supported:
py-teststand-autodoccurrently processes individual sequence files (.seq). Full workspace (.tsw) support is not yet implemented.
Treat it as experimental: wrapper behaviour may change between releases without notice (like error catching or high level imports).
If you hit a bug or unexpected behavior, open an issue with a reproducible case. That is the best way to get it fixed.
For now i prefer lightweight tags based releases (i protected them in repository settings) instead of fully described ones until reach 1.0.0 release.
🤖 AI-Assisted Development
This project leverages Large Language Models (LLMs) to assist with:
- Codebase audits and refactoring.
- Test coverage analysis and generation.
- Documentation drafting.
This is an independent community project. These AI tools are used to optimize productivity and are not an official component of the project, nor do they integrate with or replace the official NIGEL™ AI Advisor provided by National Instruments. All generated code is manually reviewed by the maintainer to ensure it meets the project's quality standards.
🚀 Installation
Install py-teststand-autodoc using uv.
⚡ Global installation
Install the tool globally to use its CLI commands:
uv tool install py-teststand-autodoc
For PDF support, include the pdf extra:
uv tool install py-teststand-autodoc[pdf]
ℹ️ PDF generation uses Playwright to drive a headless Chromium browser (Windows 10+ system Edge by default), therefore no separate browser download is required.
📦 Direct execution
Run the tool without installing it globally by using uvx:
uvx py-teststand-autodoc <input_sequence.seq> -o <output_report.md>
To generate a PDF directly, include the pdf dependency:
uvx --with "py-teststand-autodoc[pdf]" py-teststand-autodoc <input_sequence.seq> -o <output_report.md> --pdf
💻 CLI usage
Generate reports using the py-teststand-autodoc and py-teststand-autodoc-pdf commands.
⚙️ Generate report from sequence
py-teststand-autodoc <input_sequence.seq> -o <output_report.md> [options]
Options:
--profile {engineer,business,station}: Documentation profile (default:engineer). Thestationprofile generates a standalone station report with station options, station globals, and search directories.--ignore-skipped: Omit skipped steps.--models: Include process models.--batch: Treat input as a directory and recursively convert all.seqfiles inside it.--variable-scope {Locals,Parameters,FileGlobals,StationGlobals}: Variable scopes for the appendix.--station: Include station options.--types: Include custom types.--types-all: Include all custom types, not just those attached to the file.--file-custom-data-types: List custom data types defined in the file.--estimate-software-delays: Sum Wait expressions to estimate minimum software delays.--detailed-popup-messages: Include MessagePopup step details in Mermaid diagrams.--author <name>: Author name for the header (default:Jan Kowalski).--company <name>: Company name for the header (default:Yesterday Future Company).--email <email>: Author email for the header.--version <version>: Document version for the header.--pdf: Also render a PDF next to the output file via headless browser.--custom-css <path>: Path to a custom CSS file to inject into PDF rendering (can override accent color).--browser {msedge,chrome,chromium}: Chromium channel for PDF rendering (default:msedge).
🎨 Custom CSS
The default PDF stylesheet is bundled at src/py_teststand_autodoc/rendering/pdf.css.
📂 Examples
By default, the engineer profile generates all [potentially] useful data (process models, variables by their scope, station options, templates, types) and uses the extended Markdown syntax automatically:
# Generates a comprehensive engineering report with all data included
py-teststand-autodoc <input_sequence.seq> -o <output_report.md>
The examples/ directory contains sample scripts for the CLI and API usage. Check them out to learn how to integrate py-teststand-autodoc into your own scripts!
examples/
├── cli/
│ ├── run_all.bat
│ └── run_station.bat
└── api/
├── basic_generation.py
├── business_profile.py
├── extended_metadata.py
├── pdf_rendering.py
├── full.py
├── batch_workspace_conversion.py
└── station.py
- cli/run_all.bat: Runs the CLI with different option combinations (including
--authorand--profile business). - cli/run_station.bat: Generates a standalone station options report.
- api/basic_generation.py: Shows how to use the Extractor for default markdown.
- api/business_profile.py: Shows how to generate business logic reports.
- api/extended_metadata.py: Shows how to programmatically pass author, version, and revision metadata.
- api/pdf_rendering.py: Shows how to programmatically generate PDFs.
- api/full.py: Demonstrates all
generate_documentationparameters in one call. - api/batch_workspace_conversion.py: Shows how to batch convert entire directories.
- api/station.py: Shows how to generate a station options report via API.
🔗 Compatibility
🖥️ TestStand™ & Environment
| Component | Versions |
|---|---|
| Windows | 10+ |
| Python | 3.11 to 3.14 |
| TestStand™ | 2016 to 2026 |
Older TestStand™ engine versions may also work if the underlying COM interfaces have not changed, but they are not explicitly tested.
🌐 Static Site Generators
The generated Markdown output is strictly tested and validated for full compatibility with modern static site generators like:
🧰 Technical stack
| Tool | Purpose |
|---|---|
| uv | Python package and project manager |
| ty | Static type checker for interface validation |
| ruff | Linter and code formatter |
| pyrefly | Static type checker |
| pytest | Unit and integration test runner |
| Playwright | Headless Chromium browser for PDF rendering |
⚖️ Legal
TestStand™ is a registered trademark of National Instruments Corporation. Refer to NI's TestStand™ licensing options for information on required licenses to operate the TestStand™ engine.
py-teststand-autodoc is an independent community project and is not affiliated with, endorsed
by, or maintained by National Instruments or its parent company
Emerson. References to the TestStand™ API are made
solely for interoperability purposes.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_teststand_autodoc-0.1.0.tar.gz.
File metadata
- Download URL: py_teststand_autodoc-0.1.0.tar.gz
- Upload date:
- Size: 603.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f68d0b65b254cecbece2bccb45886fed15e1fb6492fc3d5494b98f4d0b55722
|
|
| MD5 |
7a2941f47df605257eaaaf98397c576e
|
|
| BLAKE2b-256 |
96a54d800182621788af80fb1f4a50742ecd851c57daacfb35431a0fce7f4f76
|
File details
Details for the file py_teststand_autodoc-0.1.0-py3-none-any.whl.
File metadata
- Download URL: py_teststand_autodoc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 64.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce357363be6644f7ef42347b5555dde73e35dc218498ebea57cda0b57b081ee0
|
|
| MD5 |
1e46e8baf0fc4b72bcb67360bcfa3c8d
|
|
| BLAKE2b-256 |
8d6be9240fba2a4086d7c5da17ed6926de23c5511842a949d1b4d9deb8f2a40e
|