Skip to main content

Create, read, and update Microsoft Word .docx files. This is a fork from the original library that includes feature requests that have been provided by the open source community but have not yet been merged in the original package.

Project description

python-docx

This package is a fork from the original python-docx. It includes feature requests that are yet to be merged in the original one. python-docx is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.

Installation

pip install python-docx-ml6

Example

>>> from docx import Document

>>> document = Document()
>>> document.add_paragraph("It was a dark and stormy night.")
<docx.text.paragraph.Paragraph object at 0x10f19e760>
>>> document.save("dark-and-stormy.docx")

>>> document = Document("dark-and-stormy.docx")
>>> document.paragraphs[0].text
'It was a dark and stormy night.'

More information is available in the python-docx documentation

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-ml6-1.0.2.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

python_docx_ml6-1.0.2-py3-none-any.whl (242.9 kB view details)

Uploaded Python 3

File details

Details for the file python-docx-ml6-1.0.2.tar.gz.

File metadata

  • Download URL: python-docx-ml6-1.0.2.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for python-docx-ml6-1.0.2.tar.gz
Algorithm Hash digest
SHA256 31d968776a5f937a341ae93fab477c35c0d047dbdfde01099a7580855d7bd099
MD5 7a8782cdd671e26b88a5e3e07eb39db6
BLAKE2b-256 b29bdf0e7cb205c820d2b43092495dce9a21628428ac6b2891b88486adc57f55

See more details on using hashes here.

File details

Details for the file python_docx_ml6-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_docx_ml6-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6031da64073323cf70f7a2b6766df56860c9c2ebfc3a948a66bbb771f90f1c74
MD5 403b4a19983e5212a5fb5769d3e16ed0
BLAKE2b-256 bd1556d15d570372d056767aa0df8e72a3ccf1f691411a189f47fd8d44f8fcee

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