How can I produce a tournament bracket image, like the above, using Python? This sort of image reminds me of a dendrogram (I'm not sure if it's literally a dendrogram or not), and I know Python can produce very sophisticated dendrograms, so I feel like my simple and regular structure should be possible. My priority is for the solution to be as straightforward as possible. I don't need a highly customizable or beautiful result.
Code which produces the exact image above would be great, but also code that produces something similar would be very helpful and I can adapt it myself. Or a suggested method, with no code, would also be helpful.
I have tried using BracketMaker, which is the first hit which shows up when I try google searching this question. In a Jupyter notebook, running Python 3.7.10, I have tried the following:
!pip install BracketMaker
from bracket import bracket # from the BracketMaker documentation
and I get the error message:
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("")? (bracket.py, line 50)
As far as I can tell, this is an error from using Python 2 code? I would like code that works in Python 3.