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
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
Activity
waketzheng commentedon Sep 24, 2025
@ugoi fastapi depends on anyio, you can do it like this:
To control the concurrency number: