docx-report
This is a simple wrapper for the python-docx package that makes creating Word documents in Python easier. It contains convenience methods for creating tables and inserting data visualizations directly from Pandas dataframes, as well as simpler syntax for generally writing text to a document.
Installation
pip install docx-report
Usage
from docx_report import DocxReport
# Create a new document
doc = DocxReport(title="My Report")
# Add a heading
doc.add_heading("My Heading")
# Add a paragraph
doc.add_paragraph("This is a paragraph.")
# Add a table
doc.add_table(df) # assuming you have a pandas dataframe called df
# Add a plot
doc.add_plot(df) # assuming you have a pandas dataframe called df
# Save the document
doc.save("my_report.docx")
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Metadata
Release files for docx-report 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docx_report-0.1.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docx_report-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / docx_report-0.1.3.tar.gz
| Download URL | docx_report-0.1.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab89af5899b64d441ed81d416fedce2fa13ed1413dca906e10df33b05200b551
|
|
BLAKE2b-256 checksum How to use checksums |
d510ca8de8a4bf4de0931fceeeab299459ae9f70956500cebdffd09da071858e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / docx_report-0.1.3-py3-none-any.whl
| Download URL | docx_report-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bad56a4f7b50270cf9d72f35b1cd7045f850c8e58c96ced03cb57f4255912e72
|
|
BLAKE2b-256 checksum How to use checksums |
e0a64e5e3998f3a0940c21dbe65f169add1cef27bd3e0d55955ed12d661e6459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|