It would be beneficial to move the current hard-coded configuration values into parameters for the Python program. This way, users can adjust these settings without needing to modify the source code directly. The goal is to make the tool more flexible and user-friendly.
To allow users to input their configurations via command-line parameters, we should use Python’s argparse package. This will also generate helpful --help text in the terminal, providing guidance on how to use the tool.
I agree—and we could potentially create an interface as an HTML document where the graph is visualised and the files (tiles) are generated, making the tool even more interactive and user-friendly.
It would be beneficial to move the current hard-coded configuration values into parameters for the Python program. This way, users can adjust these settings without needing to modify the source code directly. The goal is to make the tool more flexible and user-friendly.
Argparse
To allow users to input their configurations via command-line parameters, we should use Python’s
argparse
package. This will also generate helpful--help
text in the terminal, providing guidance on how to use the tool.Argparse Docs