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

python-docx Customer Reviews

Write a Review
  • Reviewer Name: A Verified Reviewer
    Position: Principal Software Engineer
    Has used product for: 1-2 Years
    Uses the product: Daily
    Org Size (# of Employees): 100 - 499
    Feature Set
    Layout
    Ease Of Use
    Cost
    Customer Service
    Would you Recommend to Others?
    1 2 3 4 5 6 7 8 9 10

    Edit Word docs with Python

    Date: Aug 02 2022
    Summary

    Python-docx is a life-saver if you need to create a large number of Word documents programmatically. It can format text, add media, and save files, all for free.

    Positive

    - creates and updates Microsoft Word docs using Python
    - powerful API is able to add pictures, tables, paragraphs, etc.
    - can really save time if you need to programmatically create documents using a script
    - easy to get started
    - free

    Negative

    - documentation is a little barebones, especially when it comes to advanced features

    Read More...
  • Previous
  • You're on page 1
  • Next