-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# python-docx | ||
|
||
*python-docx* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files. | ||
|
||
## Installation | ||
|
||
``` | ||
pip install python-docx | ||
``` | ||
|
||
## Example | ||
|
||
```python | ||
>>> 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](https://python-docx.readthedocs.org/en/latest/) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ behave>=1.2.3 | |
pyparsing>=2.0.1 | ||
pytest>=2.5 | ||
ruff | ||
typing-extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
lxml>=3.1.0 | ||
typing-extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters