I never wrote a FreeCAD workbench, time to learn something new.
We have a Python script fcbt.py that simplifies this task a lot. It basically copies the files from the _TEMPLATE_ directory with the specified name.
I still might have to change the Document class as I do not see how to implement some part of the code while being out of the class especially the GUI reader, but I will see.
Hmm, from the quick look I couldn't see where the Document really needs to be touched but maybe I overlooked something.
My worries are more related on the fact that we might be ending up having too much modules.
Actually I want to avoid to clutter up classes with functions that better should go into a separate class. The suggestion to move this to an external is because it's easier to make libcurl and openssl optional. Btw, I wonder if the boost library offers something in this regard.
I also understand realthunder argument and the need to keep our dependancy as low as we can
Avoiding too many dependencies e.g. makes life much easier of packaging for the various Linux distributions. When we just take Ubuntu then we permanently have to support three or four versions at the same time.
And there must be a good reason when adding the dependency to a further library.