Skip to main content

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 like import docx.

Features

  • Word 16 (Office 2019) Template (54a1269)
  • Faster & improved tables (#1)
  • SVG support (#4)
  • 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)
  • Performance improvements
    • Paragraph.text ([#3}(https://github.com/toxicphreAK/python-docx-ng/pull/3)
    • Cache for table cells (#8)
  • Fixes
    • 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
  • Remove code references to original repo of python-docx
  • Setup new docs (markdown based)
  • Add missing tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_docx_ng-0.9.3.tar.gz (142.8 kB view details)

Uploaded Source

Built Distribution

python_docx_ng-0.9.3-py3-none-any.whl (183.3 kB view details)

Uploaded Python 3

File details

Details for the file python_docx_ng-0.9.3.tar.gz.

File metadata

  • Download URL: python_docx_ng-0.9.3.tar.gz
  • Upload date:
  • Size: 142.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-58-generic

File hashes

Hashes for python_docx_ng-0.9.3.tar.gz
Algorithm Hash digest
SHA256 6dd25a90f77166a8522aa2616f464ffdda2dfa6eb225e02c9511ef1fae5a5ba6
MD5 c83d8e72e5b5b290b27bcb594bb7131f
BLAKE2b-256 643a99e374c016c6507df884433bf45884e769540f0729dfc148944b4468634c

See more details on using hashes here.

File details

Details for the file python_docx_ng-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: python_docx_ng-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 183.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-58-generic

File hashes

Hashes for python_docx_ng-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 729823ec3c67de8d4ad6f016627df5d17be6b01f8cddce8330b7b8826118721a
MD5 66b9ded5baca14b7c39e85d053f0e1d3
BLAKE2b-256 59fee8b618676ae207deb91dc733153254540ddcfd5588d4f73e0dbcc4500d18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page