I've just started using python-docx and I'm trying to center the contents of my table. I have:
table = document.add_table(rows=1, cols=1)
tableHeader = table.rows.cells
tableHeader.text = 'test'
row_cells = table.add_row().cells
row_cells.text = 'example'
table.style = 'MediumGrid3'
table.alignment = 1
The setting you're asking about isn't yet supported in python-docx.
If you add an issue for it, perhaps titled: "feature: Table.alignment", to the GitHub issues list, we'll add it to the backlog. https://github.com/python-openxml/python-docx/issues
If you haven't come across it yet, you can find the documentation for python-docx here: http://python-docx.readthedocs.org/en/latest/