A Parser For Vendor Provided .ini Files #205
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This Pull Request adds a module
apycula/ini_h4x.py
for parsing vendor-provided .ini files and edits the documentation to reflect the availability of a.ini
parser.Structure of .ini Files
The
.ini
file is a somewhat compressed table of IO Types and associated configuration options. The table has four sections --input
,output
,bidirectional
, and the optionali3c_bank
.Interface
ini_h4x.py
provides anIniParser
class for parsing.ini
files. After theparse()
method is called, the various sections of a parsed.ini
file(input, output, bidirectional, i3c_bank
) may be accessed via dot notation, or modified and written to a csv.ini_h4x.py
also exposes a simple command line tool to parse.ini
files intocsv
; it may be invoked as shown below:Correctness
The
.ini
file seems to contain similar information to the vendor supplied IO CSV files:input.csv
,output.csv
andbidir.csv
. To check that the parser.ini
parser works correctly, I did a (visual) check to make sure that the output of the parser and the data in the csv files were in agreement.Documentation
This PR updates
doc/filestructure.md
andreadme.md
with information on the structure of.ini
file and the newly introduced parser.