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 skelmis-docx

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 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.2.1.tar.gz (201.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: skelmis_docx-1.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 093b5995b6c648468dd9fef333b8dce6019e11f6badb0dd9c9fccd0566eb6aaa
MD5 37af8efd2408e9a33aa8ddb4163800c7
BLAKE2b-256 69ad44dae56a9fcbb04f2b8d887fd63824d62a8716ec13f6aec2b146692c9c91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: skelmis_docx-1.2.1-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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d97f87e968a599d49aa9f007c336b36b20edfc1471f113ba420f358e0cf47cb
MD5 9e9ae57813913f0521ba92e8ff8af78e
BLAKE2b-256 2adea2ce8acc3a6afd866c6c64679cd15c38af82898cd32ac0537f92acf8a346

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