Name | python-docx JSON |
Version |
1.1.2
JSON |
| download |
home_page | None |
Summary | Create, read, and update Microsoft Word .docx files. |
upload_time | 2024-05-01 19:41:57 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT |
keywords |
docx
office
openxml
word
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
|
coveralls test coverage |
No coveralls.
|
# 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/)
Raw data
{
"_id": null,
"home_page": null,
"name": "python-docx",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "docx, office, openxml, word",
"author": null,
"author_email": "Steve Canny <stcanny@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/35/e4/386c514c53684772885009c12b67a7edd526c15157778ac1b138bc75063e/python_docx-1.1.2.tar.gz",
"platform": null,
"description": "# python-docx\n\n*python-docx* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.\n\n## Installation\n\n```\npip install python-docx\n```\n\n## Example\n\n```python\n>>> from docx import Document\n\n>>> document = Document()\n>>> document.add_paragraph(\"It was a dark and stormy night.\")\n<docx.text.paragraph.Paragraph object at 0x10f19e760>\n>>> document.save(\"dark-and-stormy.docx\")\n\n>>> document = Document(\"dark-and-stormy.docx\")\n>>> document.paragraphs[0].text\n'It was a dark and stormy night.'\n```\n\nMore information is available in the [python-docx documentation](https://python-docx.readthedocs.org/en/latest/)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Create, read, and update Microsoft Word .docx files.",
"version": "1.1.2",
"project_urls": {
"Changelog": "https://github.com/python-openxml/python-docx/blob/master/HISTORY.rst",
"Documentation": "https://python-docx.readthedocs.org/en/latest/",
"Homepage": "https://github.com/python-openxml/python-docx",
"Repository": "https://github.com/python-openxml/python-docx"
},
"split_keywords": [
"docx",
" office",
" openxml",
" word"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3e3d330d9efbdb816d3f60bf2ad92f05e1708e4a1b9abe80461ac3444c83f749",
"md5": "6e417ace8e26970be1b1fa41ffa9723d",
"sha256": "08c20d6058916fb19853fcf080f7f42b6270d89eac9fa5f8c15f691c0017fabe"
},
"downloads": -1,
"filename": "python_docx-1.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6e417ace8e26970be1b1fa41ffa9723d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 244315,
"upload_time": "2024-05-01T19:41:47",
"upload_time_iso_8601": "2024-05-01T19:41:47.006988Z",
"url": "https://files.pythonhosted.org/packages/3e/3d/330d9efbdb816d3f60bf2ad92f05e1708e4a1b9abe80461ac3444c83f749/python_docx-1.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "35e4386c514c53684772885009c12b67a7edd526c15157778ac1b138bc75063e",
"md5": "24853c53a15775343dc47c495af25790",
"sha256": "0cf1f22e95b9002addca7948e16f2cd7acdfd498047f1941ca5d293db7762efd"
},
"downloads": -1,
"filename": "python_docx-1.1.2.tar.gz",
"has_sig": false,
"md5_digest": "24853c53a15775343dc47c495af25790",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5656581,
"upload_time": "2024-05-01T19:41:57",
"upload_time_iso_8601": "2024-05-01T19:41:57.772829Z",
"url": "https://files.pythonhosted.org/packages/35/e4/386c514c53684772885009c12b67a7edd526c15157778ac1b138bc75063e/python_docx-1.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-01 19:41:57",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "python-openxml",
"github_project": "python-docx",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [],
"tox": true,
"lcname": "python-docx"
}