python-drafthorse
python-drafthorse copied to clipboard
AttributeError: module 'drafthorse' has no attribute 'models'
Hey there, as I want to use your library in a bigger context I'd prefer to call everything with absolute identifiers.
import drafthorse
doc = drafthorse.models.document.Document()
Sadly this throws
AttributeError: module 'drafthorse' has no attribute 'models'
How could I still make this work without hand-picking the imports? Thanks!
I believe the reason would be that the drafthorse module does not explicitly import its submodules.
However one could still use it like this:
import drafthorse.models.document
doc = drafthorse.models.document.Document()