How larsvoelker/fibexconverter works
1. Repository purpose
FibexConverter is a Python 3 toolchain for reading FIBEX 4 XML files that describe SOME/IP-related network/configuration data, then transforming that input into several downstream artifacts: plain text, topology views, Wireshark config files, CSV reports, and Peach-related output.
2. Primary pipeline
The architecture is a simple one-way conversion flow:
FIBEX XML input → parser layer → shared configuration/model objects → format-specific exporters → files in an output directory.
The same parsed model is reused by all exporters, which keeps the output formats decoupled from parsing.
3. Parsing subsystem
fibex_parser.py is the concrete FIBEX parser implementation.
abstract_parser.py defines the parser contract/behavior expected by the rest of the system.
parser_dispatcher.py acts as the routing layer that selects the right parser for a given input type such as FIBEX.
This separation makes the parser swappable and gives the repo a plugin-friendly entry point.
4. Shared domain/configuration layer
configuration_base_classes.py contains the core configuration/data abstractions that sit between parsing and export.
These classes are the main boundary in the system: parsers populate them, exporters consume them, and tests validate their behavior.
For an architecture diagram, this layer is the central “in-memory model” of the application.
5. Export/output generators
Each configuration_to_*.py file is a separate conversion frontend targeting a specific artifact:
- configuration_to_text.py for human-readable text
- configuration_to_topology.py for topology-oriented output
- configuration_to_wireshark_config.py for Wireshark configuration files
- configuration_to_reports.py for CSV-style reporting
- configuration_to_peach.py for Peach-related generation
These scripts are not alternate parsers; they are alternate renderers over the same parsed configuration model.
6. Wireshark integration boundary
The Wireshark exporter is especially important architecturally because it produces a directory of config files that are meant to be copied into Wireshark’s user config location.
The README notes SOME/IP support in Wireshark 3.2+, which implies the generated files are intended to feed Wireshark’s runtime behavior rather than merely document the config.
7. Plugin/extension point
plugins/example_fibex_parser_plugin.py indicates the parser subsystem can be extended externally or customized.
This suggests a loose plugin boundary around parsing, likely used to adapt FIBEX handling without changing the exporter layer.
8. Command-line entry points
The repository is organized as a set of direct Python scripts rather than a single monolithic app.
Each configuration_to_*.py file can be invoked from the command line with a parser type like FIBEX plus an input XML file, making the workflow script-driven and batch-friendly.
9. Test architecture
Tests are organized with pytest and cover both unit-level and real-file behavior.
The suite includes tests for the abstract parser, configuration base classes, parser dispatcher, FIBEX parsing, and multiple output formats.
tests/fibex_files/ provides representative XML fixtures, including someip_service.xml and ethernet_topology.xml, which show the tool’s focus on realistic protocol/configuration data.
10. Repository support and automation
requirements.txt and tests/requirements.txt separate runtime and test dependencies.
.github/workflows/push_and_pr.yaml suggests CI runs on pushes and pull requests.
local_checkers.sh implies local validation mirrors CI behavior, which is useful when diagramming the repo’s operational boundaries.
11. Practical architecture summary
The core design is: one parser layer, one shared model layer, many output-specific renderers.
That means the critical dependency direction is inward from format-specific scripts to the common configuration model, and then outward to generated artifacts.
For an architecture diagram, the key boxes are: input XML, dispatcher/parser, configuration model, exporters, and filesystem outputs.
Main entry points: configuration_base_classes.py Config model · someip_service.xml FIBEX fixtures · parser_dispatcher.py Dispatcher · fibex_parser.py FIBEX parser
Components 18
Core pipeline
Parsing, shared model, and export flow
- FIBEX XML · Input network/configuration XML files
- Dispatcher · Selects a parser for the given input type
parser_dispatcher.py - Parser API · Defines the parser behavior expected by the system
abstract_parser.py - FIBEX parser · Concrete parser for FIBEX 4 files
fibex_parser.py - Config model · In-memory configuration objects shared by parsers and exporters
configuration_base_classes.py - Text export · Generates human-readable text output
configuration_to_text.py - Topology export · Generates topology-oriented output
configuration_to_topology.py - Wireshark export · Generates Wireshark configuration files and directories
configuration_to_wireshark_config.py - Reports export · Generates CSV-style reports
configuration_to_reports.py - Peach export · Generates Peach-related output
configuration_to_peach.py - Output files · Generated artifacts written to an output directory
Support
Plugins and repository automation
- Example plugin · Shows how the parser layer can be extended externally
plugins/example_fibex_parser_plugin.py - CI workflow · GitHub Actions checks for pushes and pull requests
.github/workflows/push_and_pr.yaml - Local checks · Local validation script mirroring CI behavior
local_checkers.sh
Tests
Pytest coverage and fixtures
- Parser tests · Tests for parser contracts, dispatch, and FIBEX parsing
tests/test_abstract_parser.py - Model tests · Tests for shared configuration base classes
tests/test_configuration_base_classes.py - Export tests · Tests for text, topology, Wireshark, reports, and Peach generation
tests/test_configuration_to_text.py - FIBEX fixtures · Representative XML inputs used by the test suite
tests/fibex_files/someip_service.xml
Connections 20
- FIBEX XML → Dispatcher: select parser · Input XML is routed to the appropriate parser
- Dispatcher → Parser API: implements · Dispatcher works against the parser contract
- Dispatcher → FIBEX parser: loads · Dispatches FIBEX input to the concrete parser
- FIBEX parser → Config model: populate · Parser builds the shared configuration objects
- Config model → Text export: consume · Text renderer reads the shared model
- Config model → Topology export: consume · Topology renderer reads the shared model
- Config model → Wireshark export: consume · Wireshark renderer reads the shared model
- Config model → Reports export: consume · Reports renderer reads the shared model
- Config model → Peach export: consume · Peach renderer reads the shared model
- Text export → Output files: write · Produces files in the output directory
- Topology export → Output files: write · Produces topology artifacts
- Wireshark export → Output files: write · Produces Wireshark config files and directories
- Reports export → Output files: write · Produces report artifacts
- Peach export → Output files: write · Produces Peach artifacts
- Example plugin → FIBEX parser: extends · Example plugin demonstrates parser extensibility
- CI workflow → Parser tests: runs · CI executes the test suite
- Local checks → Export tests: mirrors · Local checks mirror automated validation
- FIBEX fixtures → Parser tests: feeds · Representative XML files drive parser tests
- FIBEX fixtures → Export tests: feeds · Real files validate export behavior
- FIBEX fixtures → Model tests: feeds · Fixtures support model-related integration coverage