Would suggest you to go through the knowledgebase doc here:
Working with Styles — python-docx 0.8.10 documentation[
^]
Just add style to the add_paragraph as needed:
paragraph = document.add_paragraph(style='Body Text')
Do notice, there are few defined styles that can be used right away:
from docx.enum.style import WD_STYLE_TYPE
styles = document.styles
paragraph_styles = [
s for s in styles if s.type == WD_STYLE_TYPE.PARAGRAPH
]
for style in paragraph_styles:
print(style.name)
There are paragraph specific style properties that you can use to get desired feel. Try out.