python-docx
توضیحات
Create, read, and update Microsoft Word .docx files.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | python-docx-1.2.0 |
| نام | python-docx |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Steve Canny <stcanny@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/python-docx/ |
| مجوز | MIT |
# 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/)
نیازمندی
| مقدار | نام |
|---|---|
| - | lxml>=3.1.0 |
| - | typing_extensions>=4.9.0 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl python-docx-1.2.0:
pip install python-docx.whl
نصب پکیج tar.gz python-docx-1.2.0:
pip install python-docx.tar.gz