Skip to main content

python-docx-2023-docx

Python library forked from python-docx.

The main purpose of the fork was to add implementation for comments and footnotes to the library

Installation

Use the package manager pip to install python-docx-2023.

pip install python-docx-2023

Usage

import docx

document = docx.Document()

paragraph1 = document.add_paragraph('text') # create new paragraph

comment = paragraph.add_comment('comment',author='Obay Daba',initials= 'od') # add a comment on the entire paragraph

paragraph2 = document.add_paragraph('text') # create another paragraph

run = paragraph2.add_run('texty') add a run to the paragraph

run.add_comment('comment') # add a comment only for the run text

paragraph.add_footnote('footnote text') # add a footnote

License

MIT

#Release History idtareq/python-docx-2023 forked from (python-openxmm/python-docx)

0.2.8 (2020-05-02)

  • add comments implementation on a run level

  • fix issue with comments date (comments dates are set to current date)

0.2.4 (2019-9-4)

  • loop over all the document chieldern (Paragraphs, Tables, Sections) with the right order document.elements

  • addons to Paragraph Object (delete, heading_level, merge_paragraph )

  • Add low-level implementation for comments part

  • Add oxml element for <w:comments> element and sub-elements

  • Add add_comment() method for docx.text.Paragraph

  • Add low-level implementation for footnotes part

  • Add oxml element for <w:footnotes> element and sub-elements

  • Add add_footnote() method for docx.text.Paragraph

Metadata

Release files for python-docx-2023 0.2.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-docx-2023 0.2.17
File Size Uploaded Provenance Actions
python-docx-2023-0.2.17.tar.gz 5.5 MB Without provenance Details for python-docx-2023-0.2.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-docx-2023 0.2.17
File Interpreter ABI Platform Actions
python_docx_2023-0.2.17-py3-none-any.whl Python 3 none any Details for python_docx_2023-0.2.17-py3-none-any.whl

Total release size: 5.7 MB

Release files / python-docx-2023-0.2.17.tar.gz

Download URL python-docx-2023-0.2.17.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
41c5e8e25b920d93d863764ce4b46ca1446b89aebf26726a0e4d3420ae5dad33
BLAKE2b-256 checksum
How to use checksums
ba655530323cf58af780a9afc99bffc99d05bacfbfa3aef58b03c93f98a8b2ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / python_docx_2023-0.2.17-py3-none-any.whl

Download URL python_docx_2023-0.2.17-py3-none-any.whl
Size 194.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95924ddba81c3c5cebbb85f77ef82e4ea0f9621aa9ad9355d9940bbf3f62844f
BLAKE2b-256 checksum
How to use checksums
3808ba17bf696a091a6e12e342e89c37708d4b904f745fbe4f70310a0ee104fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for python-docx-2023 0.2.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.17 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page