# python-docx
*python-docx-valutico* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.
This is basically the same as *python-docx*, but with added support for charts.
## 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-valutico",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "docx, office, openxml, word",
"author": null,
"author_email": "Andreas Steiner <a.steiner@valutico.com>",
"download_url": "https://files.pythonhosted.org/packages/92/87/f247124ca53ab676d7282ec720c98741b514ae2031fb7bc8eb43a1213944/python_docx_valutico-1.2.0.tar.gz",
"platform": null,
"description": "# python-docx\n\n*python-docx-valutico* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.\n\nThis is basically the same as *python-docx*, but with added support for charts.\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.2.0",
"project_urls": {
"Changelog": "https://github.com/AndreasSteinerPF/python-docx/blob/master/HISTORY.rst",
"Documentation": "https://python-docx.readthedocs.org/en/latest/",
"Homepage": "https://github.com/AndreasSteinerPF/python-docx",
"Repository": "https://github.com/AndreasSteinerPF/python-docx"
},
"split_keywords": [
"docx",
" office",
" openxml",
" word"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "20054a0e776bee3db2c107a3f7621d8df1eb510ed141331f5a726194d1bfdf15",
"md5": "fbc1717b2d85b458d0096df47a5dde34",
"sha256": "2cb0eaaff45d550b709a1bb334a4888a5d69ec599f59950b1e490817ff5051af"
},
"downloads": -1,
"filename": "python_docx_valutico-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fbc1717b2d85b458d0096df47a5dde34",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 254291,
"upload_time": "2025-07-13T19:36:52",
"upload_time_iso_8601": "2025-07-13T19:36:52.411213Z",
"url": "https://files.pythonhosted.org/packages/20/05/4a0e776bee3db2c107a3f7621d8df1eb510ed141331f5a726194d1bfdf15/python_docx_valutico-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9287f247124ca53ab676d7282ec720c98741b514ae2031fb7bc8eb43a1213944",
"md5": "79e7bdc6c213dcd095b524f30222c425",
"sha256": "f2667e2097582d1f329f2b4e41f276a9c79d8bcff97a3dfcd42eda05241953de"
},
"downloads": -1,
"filename": "python_docx_valutico-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "79e7bdc6c213dcd095b524f30222c425",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5673328,
"upload_time": "2025-07-13T19:36:54",
"upload_time_iso_8601": "2025-07-13T19:36:54.557580Z",
"url": "https://files.pythonhosted.org/packages/92/87/f247124ca53ab676d7282ec720c98741b514ae2031fb7bc8eb43a1213944/python_docx_valutico-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-13 19:36:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AndreasSteinerPF",
"github_project": "python-docx",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "lxml",
"specs": [
[
">=",
"3.1.0"
]
]
},
{
"name": "typing-extensions",
"specs": []
},
{
"name": "python-pptx-valutico",
"specs": [
[
">=",
"1.0.0"
]
]
}
],
"tox": true,
"lcname": "python-docx-valutico"
}