Tool to prettify a python data structure:
- list of objects
- object
- touple
Intended:
- Takes single quotes into account. Should have option to keep single quotes.
- Should work in Python file, too. (Might need more complex parser).
- proper documentation
- error handling
- handle errors where there's nothing in the document
- handle other possible errors
- handle cases where there's a mix between single and double quotes
- handle escaping double quotes between single quotes
- settings:
- indentation setting
- convert to json
- max line depth - no need for this
- use custom parser in python
- run with
cat samples/touple.txt | python src/parsers/parse_to_ast.py --indent=4
- run with
- connect with TS and test in UI
- work on a selection inside a python file
- identify only the data structure
- right click (context menu) action on a line
- tests
- To be completed