How opcua-lads/lads-client-py works
Project type and purpose
• This is an open-source Python tooling project composed of two related libraries:
• lads_opcua_client: a Pythonic client for interacting with a LADS OPC UA server
• lads_opcua_viewer: a Streamlit-based viewer/CLI that builds on the client library to present live data
File structure
• Top-level directories and files
• lads_opcua_client/…: client library sources, AFO CSV dictionary, main.py entry point
• lads_opcua_viewer/…: viewer library sources, CLI (cli.py), Streamlit main.py
• dev/: build & install scripts (PowerShell + Bash) for both packages
• tests/: unit tests (e.g., test_main.py)
• requirements.txt, README.md, LICENSE, presentation/ (PPTX)
• Patterns and architecture hints
• Two distinct Python packages, each with its own pyproject.toml
• Client library defines core domain logic (OPC UA connection + data models)
• Viewer library depends on client and adds a presentation layer (CLI + web UI)
• Dev scripts automate build/install for local editable or packaged installs
README for additional insights
• Confirms dual-package structure and install order (client → viewer)
• Highlights dependencies: Python 3.12+, python-build, Streamlit (for the viewer)