How gss-dcg/testpy works
This repository implements a Dlubal wind-and-snow data calculator exposed through an XML-based tool runner. The principal workflow is: a caller supplies a tool request, the runner parses its XML and variables, the Dlubal application obtains location inputs and coordinates calculator work, and results and notes are serialized as an answer. The calculator also handles country-specific map selection, cached/API data retrieval, CSV parsing, and unit conversion. Source excerpts show the runner and data model, but omit parts of the execution path; uncertain links are therefore not inferred.
Main entry points: Dlubal_calculator.py Calculator · Dlubal.py Dlubal app · Tool_Runner.py Tool runner · Request.py Request parser
Components 15
Dlubal application
- Dlubal app
Dlubal.py
Weather calculation
- Calculator
Dlubal_calculator.py - Map selection
Dlubal_calculator.py - Cache and API fetch
Dlubal_calculator.py - CSV parsing
Dlubal_calculator.py - Data processing
Dlubal_calculator.py - Unit conversion
Dlubal_calculator.py
XML tool runtime
- Tool runner
runner/Tool_Runner.py - Prep base
runner/prep_base.py
Request and answer models
- Request parser
runner/Request.py - Tool metadata
runner/Tool.py - Typed variables
runner/Variable.py - Answer builder
runner/Answer.py
Other components
- Tool caller
- Dlubal data service
Connections 16
- Tool caller → Dlubal app: invokes
Dlubal.py - Dlubal app → Tool runner: extends and runs
Dlubal.py - Dlubal app → Calculator: initializes
Dlubal.py - Dlubal app → Calculator: reads wind and snow
Dlubal.py - Tool runner → Request parser: uses request
runner/Tool_Runner.py - Request parser → Tool metadata: parses metadata
runner/Request.py - Request parser → Typed variables: creates variables
runner/Request.py - Tool runner → Answer builder: delegates XML output
runner/Tool_Runner.py - Answer builder → Typed variables: builds variable values
runner/Answer.py - Prep base → Tool runner: extends
runner/prep_base.py - Calculator → Map selection: selects maps
Dlubal_calculator.py - Calculator → Cache and API fetch: loads data
Dlubal_calculator.py - Cache and API fetch → CSV parsing: parses cached or fetched CSV
Dlubal_calculator.py - Cache and API fetch → Dlubal data service: requests data
Dlubal_calculator.py - Calculator → Data processing: processes data
Dlubal_calculator.py - Data processing → Unit conversion: converts units
Dlubal_calculator.py