Skip to main content

Create, read, and update Microsoft Word .docx files.

Project description

python-docx

python-docx is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.

This repository exists as a fork of the official repo as I needed features and quality of life improvements.

Installation

pip install XXX-TODO-PUBLISH-XXX

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

skelmis_docx-1.1.2.tar.gz (201.4 kB view details)

Uploaded Source

Built Distribution

skelmis_docx-1.1.2-py3-none-any.whl (246.6 kB view details)

Uploaded Python 3

File details

Details for the file skelmis_docx-1.1.2.tar.gz.

File metadata

  • Download URL: skelmis_docx-1.1.2.tar.gz
  • Upload date:
  • Size: 201.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic

File hashes

Hashes for skelmis_docx-1.1.2.tar.gz
Algorithm Hash digest
SHA256 5d3e7cdc4deeb257e2addb26479cb8cf8f3dafde1710a77e0e9f7540c58a9bb4
MD5 ad8d36fd276b0b10abcfa7d98f07468c
BLAKE2b-256 ea58d32d516f00f601c8538581a92a6dc6c8455d55792b7d37b922167503f40b

See more details on using hashes here.

File details

Details for the file skelmis_docx-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: skelmis_docx-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 246.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.8.0-40-generic

File hashes

Hashes for skelmis_docx-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8425faef33e6d4e457bf404e9e72740417a80df033ac6668647de9f5515fca84
MD5 ec67cd02c4f89369cca3f4751b237faf
BLAKE2b-256 216d411ed1b5d18ab9347a7f40b38e73b47ae2f764651f89bee89de9a50873c1

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