aboutsummaryrefslogtreecommitdiffstats
path: root/config_file/abstract_parser.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-11-26Move parsers to parsers directoryEugene Triguba1-131/+0
2020-08-16Enforce `parsed_content` property in AbstractParserEugene Triguba1-0/+15
It is used in the ConfigFile object to be able to index into it.
2020-08-16Refactor parsers to enforce loads/dumps/decode_error requirementEugene Triguba1-4/+2
2020-08-06Change MissingKeyErrors to KeyErrorEugene Triguba1-2/+2
2020-08-05Add `wild` to AbstractParserEugene Triguba1-1/+2
2020-08-05Redo package to have a flat package structureEugene Triguba1-0/+0
By having a flat package structure like this, it'll avoid exposing packages and things we don't want to be exposed.
2020-07-20Redo docstrings and api for abstract parserEugene Triguba1-40/+82
2020-07-19Change name of BaseParser to AbstractParserEugene Triguba1-10/+10
2020-07-19Remove zsh info and add extras sub headerEugene Triguba1-0/+0
2020-07-12Add return type hints to BaseParserEugene Triguba1-2/+2
2020-06-20Add types to base parser and update build badgeEugene Triguba1-6/+6
2020-06-20Add more type hints to ConfigFile and lint all filesEugene Triguba1-1/+0
2020-06-20Add python 3.5 support, ConfigFileError, and more type hintsEugene Triguba1-3/+0
Also, get_all, set_all, and delete_all in JsonParser have been renamed to just all.
2020-06-20Add more type hints to ConfigFile and lint all filesEugene Triguba1-1/+0
2020-06-20Add python 3.5 support, ConfigFileError, and more type hintsEugene Triguba1-3/+0
Also, get_all, set_all, and delete_all in JsonParser have been renamed to just all.
2020-02-09Add default + return_type param to get(), turn off automatic parsingEugene Triguba1-2/+2
2020-02-02Add type hints + contents is now content in BaseParserEugene Triguba1-4/+4
2020-01-17Remove _split_on_dot from base parser and add it to utilsEugene Triguba1-20/+1
Also, change the default behavior to split on every dot and split on only the last dot if specified
2020-01-17Expose private attrs and methods in base parserEugene Triguba1-10/+33
Also, has_section and has_key are now has() since some formats may not have sections. parse() and self.contents are now public. _split_on_dot helper method is added.
2020-01-04Add a base parser for the concrete parser implementationsEugene Triguba1-0/+75