What is python-docx?

The python-docx library is specifically crafted for the purpose of handling Microsoft Word (.docx) files through Python programming. Within Word documents, paragraphs are essential as they serve multiple functions, including body text, headings, and list items such as bullet points. Users have the ability to set both width and height for certain elements, although it is usually best practice to refrain from doing so. When one dimension is established, python-docx will automatically determine the other dimension to preserve the aspect ratio, ensuring that images appear as intended without any distortion. For those who may not be well-acquainted with Word paragraph styles, it is beneficial to delve into this feature, as it allows users to apply a wide array of formatting options to a paragraph simultaneously. This library not only permits the creation of new documents but also enables the modification of pre-existing ones, and while it mainly emphasizes making adjustments to current files, beginning with a blank document can create the illusion of constructing a project from scratch. Furthermore, by leveraging this library, users can significantly enhance their efficiency when producing and modifying Word documents, making it a valuable tool for anyone working with this format.

Pricing

Price Starts At:
Free
Free Version:
Free Version available.

Integrations

Offers API?:
Yes, python-docx provides an API

Screenshots and Video

python-docx Screenshot 1

Company Facts

Company Name:
python-docx
Company Website:
python-docx.readthedocs.io/en/latest/

Product Details

Deployment
Windows
Linux
Training Options
Documentation Hub
Support
Web-Based Support

Product Details

Target Company Sizes
Individual
1-10
11-50
51-200
201-500
501-1000
1001-5000
5001-10000
10001+
Target Organization Types
Mid Size Business
Small Business
Enterprise
Freelance
Nonprofit
Government
Startup
Supported Languages
English

python-docx Categories and Features