Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config parser #6

Merged
12 commits merged into from
Oct 17, 2023
Merged

Config parser #6

12 commits merged into from
Oct 17, 2023

Conversation

HenrithicusGreenson
Copy link
Collaborator

No description provided.

HenrithicusGreenson and others added 5 commits October 4, 2023 13:02
- Added ini-parser directory and python file.
- Added two testing .ini files.
- Added ability load .ini file into pythons script.
- Added helper methods to ini-parser.py
Returns a python dictionary that holds the key value pairs of a YAML file.

Currently accepts command line arguments as filename and section heading.
- Added getAllHeadings, which returns each "section" in the yaml file.

NOTE: Each section must have at least one key value pair in it, otherwise an error is handled that returns a statement saying that the specified section contains no values.
@BBergle BBergle requested review from BBergle, r-akers, a user and patedm01 October 12, 2023 21:26
@HenrithicusGreenson
Copy link
Collaborator Author

TODO:
Wrap YAML parser in a class, loader or maybe main function of program will instantiate a parser object and pass it the filename/location for the config file.

When the module loads the module, it can pass the parser object in to use for querying the YAML file.

@HenrithicusGreenson
Copy link
Collaborator Author

TODO:
Move files into correct folders.
yaml-parser -> Genisys/genisys
test.yml -> Documentation folder for examples
Any tests -> Testing folder

@ghost ghost merged commit b5a7d72 into main Oct 17, 2023
@ghost ghost deleted the config-parser branch October 17, 2023 18:09
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants