python-docx-ng is a Python library for creating and updating Microsoft Word (.docx) files.
Project description
python-docx-ng
python-docx-ng is a Python library for creating and updating Microsoft Word (.docx) files. It was originally designed and developed by scanny as python-docx. As he is not actively developing his repo and there are soo many useful pull requests, bringing together a more powerful tool. This repo should merge a lot of those things and create a more powerful version, hopefully bearing the original structure of scanny in mind.
A new documentation section will be build up soon based on Markdown in the docs section. Examples can be found here: examples Older information is available in the python-docx Documentation.
Installation
pip install python-docx-ng
Hint: The library is called
docx
in python scripts, so use imports likeimport docx
.
Features
- Extended Properties support python-docx #1206
- Word 16 (Office 2019) Template (54a1269)
- Faster & improved tables (#1)
- SVG support (#4)
- EMF support (85a30f1)
- WMF support (9288ec9)
- Font scaling (#6)
- Outline level (#7) - shows outline in navigation (e.g. Word or PDF application - not affecting the document itself)
- RGB color font highlighting (#14)
- Hyperlink text (#16)
-
.docm
file support (#19) - enables marco documents - Form fields & AltChunk support (#20)
- Custom namespaces (#21)
- Comment support (85a30f1)
- Footnote support (85a30f1)
- Shading support (9288ec9)
- Performance improvements
- Paragraph.text ([#3}(https://github.com/toxicphreAK/python-docx-ng/pull/3)
- Cache for table cells (#8)
- Fixes
- Fix table issue python-docx#1196 - as table columns were not assigned correctly, see python-docx#1193
- Fix table merging recusion https://github.com/python-openxml/python-docx/issues/1208 - replace recursion with for loop
- add_picture (#10) - fix next_id to support multiple pictures
Heading 1
key error due to style capitalization (e.g. in LibreOffice) (#12)- Fix XPath for sectPr in document (#15)
- Reproducible documents (#17) - same binary output with same data
- AttValue too long in etree xml parser (#24)
Roadmap
- Document all functionallities building a new sample document with all (most) features included
- Go through all Issues of python-docx repo
- Open & To Be Implemented:
- media file path issue - https://github.com/python-openxml/python-docx/pull/1205
- automatically update table of contents - https://github.com/python-openxml/python-docx/issues/1207
- specify table location (not at end of document) - https://github.com/python-openxml/python-docx/issues/1204
- read information from activex elements - https://github.com/python-openxml/python-docx/issues/1197
- begin new list numbering - https://github.com/python-openxml/python-docx/issues/1194
- Open & To Be Implemented:
- Search on stackoverflow and document solutions
- Go through all Issues of python-docx repo
- Remove code references to original repo of python-docx
- Setup new docs (markdown based)
- Add missing tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_docx_ng-0.9.5.tar.gz
.
File metadata
- Download URL: python_docx_ng-0.9.5.tar.gz
- Upload date:
- Size: 167.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd98b884eec6ecaa8287dcc856798e09771aff0699bf3a32459a823b75575bf |
|
MD5 | d69924038b5d03847a80d6ba201bd0c2 |
|
BLAKE2b-256 | cea6449840160e546308d36ca4774831c73d66540e2c20c2e6940774de29f497 |
File details
Details for the file python_docx_ng-0.9.5-py3-none-any.whl
.
File metadata
- Download URL: python_docx_ng-0.9.5-py3-none-any.whl
- Upload date:
- Size: 216.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d2f4df9a781ce29de18de49b72a8c3b75c5d3e5d4a526615e65cccea6e91da4 |
|
MD5 | 854de747b3c9e0e81bdadbb842722b06 |
|
BLAKE2b-256 | 82e586529232f3be2213b4c5156f5295615f3a48397da766617e15de924dad97 |