Giter VIP home page Giter VIP logo

bayoo-docx's Introduction

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()

paragraph = 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('text1') #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

bayoo-docx's People

Contributors

ahmadalwareh avatar apteryks avatar bayoog avatar dkwoods avatar eupharis avatar lone-bassel avatar ondrej-111 avatar onlyjus avatar revossen-asml avatar scanny avatar stevecohen42 avatar virajkanwade avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.