Skip to content

Supported Python Versions #495

Open

Description

@aronbierbaum

Describe your problem

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.

Activity

  1. elapouya commented on May 12, 2023

    @elapouya
    Owner

    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...

  2. aronbierbaum commented on May 12, 2023

    @aronbierbaum
    Author

    How is that possible when the typing module is being imported?

  3. aronbierbaum commented on May 12, 2023

    @aronbierbaum
    Author

    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)

  4. cvas22 commented on Nov 25, 2026

    @cvas22

    @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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions