You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm considering submitting a few pull requests. One would be to add more type hints, and the second would be to add basic asyncio support. Before I start though I want to know what versions of Python must be supported? setup.py indicates support for Python 2.7 and 3.4, but the usage of the typing module in template.py makes me think only Python 3.5+ are supported. As you are probably aware there have been many type hint improvements in recent versions.
I am afraid that despite python 2.7 is not supported anymore, many are still using it. maybe in some few years I will drop these old python versions...
@aronbierbaumdocform, the maintained fork of python-docx-template, targets Python 3.10 to 3.14, matching its CI (cvas22/docform#208), and has async rendering with render_async()/save_async().
Activity
elapouya commentedon May 12, 2023
I am afraid that despite python 2.7 is not supported anymore, many are still using it. maybe in some few years I will drop these old python versions...
aronbierbaum commentedon May 12, 2023
How is that possible when the typing module is being imported?
aronbierbaum commentedon May 12, 2023
It is also worth noting that Jinja dropped support for Python 2.7/3.5 in version 3.0.0 which was released two years ago. (https://jinja.palletsprojects.com/en/3.0.x/changes/#version-3-0-0)
cvas22 commentedon Nov 25, 2026
@aronbierbaum docform, the maintained fork of python-docx-template, targets Python 3.10 to 3.14, matching its CI (cvas22/docform#208), and has async rendering with
render_async()/save_async().