Skip to content

AlphaNumeric99/python-docx

 
 

Repository files navigation

Bayoo-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 bayoo-docx.

pip install bayoo-docx

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

run.add_comment('comment2')

run_comments = run.comments

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

Donation

bitcoin: bc1q9dftn4ndufwzyzkm8ryu0kky0v8y7w00zdah9r

License

MIT

About

Create and modify Word documents with Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.3%
  • Gherkin 6.6%
  • Makefile 0.1%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy