Skip to content

Asyncio support #610

@ugoi

Description

@ugoi

Is your feature request related to a problem? Please describe.

I'm trying to use DocxTemplate inside my async FastAPI endpoint but since it's blocking I have to make my FastAPI endpoint synchronous which will create additional thread. I don't want to use up all my threads when getting many requests.

Describe the solution you'd like

If I could simply await the DocxTemplate and all it's methods this would be no problem.

Describe alternatives you've considered

Maybe use aiofiles or something / not sure about this

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions