python-docx-whtsky
python-docx-whtsky is a Python library for creating and updating Microsoft Word (.docx) files.
More information is available in the python-docx documentation
Release History
0.8.10.3 (2019-11-11)
- TableCell's
add_tablemethod acceptsfirstCol, firstRow, lastCol, lastRow, hBand, vBand)now.
0.8.10.2 (2019-10-23)
- Add ability to restart list numbering. ( https://github.com/python-openxml/python-docx/pull/210 )
Example
https://github.com/python-openxml/python-docx/issues/25#issuecomment-143231954
from docx import Document
document = Document()
# Add desired numbering styles to your template file.
# Extract abstractNumId from there. In this example, abstractNumId is 10
numId = document.get_new_list("10")
# Add a list
p = document.add_paragraph(style = 'ListParagraph', text = "a")
p.num_id = numId
p.level = 0
p = document.add_paragraph(style = 'ListParagraph', text = "b")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "c")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "d")
p.num_id = numId
p.level = 0
p = document.add_paragraph(style = 'ListParagraph', text = "e")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "f")
p.num_id = numId
p.level = 0
# Restart numbering at the outer level
numId = document.get_new_list("10")
# Add the same list once again. The numbering is restarted
p = document.add_paragraph(style = 'ListParagraph', text = "a")
p.num_id = numId
p.level = 0
p = document.add_paragraph(style = 'ListParagraph', text = "b")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "c")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "d")
p.num_id = numId
p.level = 0
p = document.add_paragraph(style = 'ListParagraph', text = "e")
p.num_id = numId
p.level = 1
p = document.add_paragraph(style = 'ListParagraph', text = "f")
p.num_id = numId
p.level = 0
document.save("num.docx")
0.8.10.1 (2019-10-16)
- allow table looking (header row/col, footer row/col, bands) modification. https://github.com/python-openxml/python-docx/pull/579
- Added font property to paragraph. https://github.com/python-openxml/python-docx/pull/417
Release files for python-docx-whtsky 0.8.10.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| python-docx-whtsky-0.8.10.3.tar.gz | 5.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_docx_whtsky-0.8.10.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 5.7 MB
Release files / python-docx-whtsky-0.8.10.3.tar.gz
| Download URL | python-docx-whtsky-0.8.10.3.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54d41ac8699af7783857b64befea755e39db5e00e917e7b9f7d675f0c3bf751b
|
|
BLAKE2b-256 checksum How to use checksums |
e034aa5d4a789badf5ae753544eb66ecf09fb227353e1f655449df0188583b48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / python_docx_whtsky-0.8.10.3-py2.py3-none-any.whl
| Download URL | python_docx_whtsky-0.8.10.3-py2.py3-none-any.whl |
|---|---|
| Size | 183.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a487a25ea6f3d66816d8c5cbb54659f773eeea019d34c126c6cb6ee0db856456
|
|
BLAKE2b-256 checksum How to use checksums |
5279ebaaaad26bc2c8bbc7a955b462c7f125caf88a00453cd09be41c8669a647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|