Skip to main content

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Try our free online Apps demonstrating some of the most popular Aspose.Words functionality.

Aspose.Words for Python is a powerful on-premise class library that can be used to perform a wide range of document-processing tasks, including document generation, editing, conversion, and rendering. The library is fully self-contained and does not require any third-party software like Microsoft Word or OpenOffice. With the addition of our new AI-powered features—such as document summarization, translation, and grammar checking—you can now bring intelligent automation into your document workflows using your preferred AI model.

Word API Features

The following are some popular features of Aspose.Words for Python:

  • Aspose.Words can be used to develop applications for a vast range of operating systems such as Windows, Linux, or macOS.
  • Comprehensive document import and export with 35+ supported file formats. This allows users to convert documents from one popular format to another, for example, from DOCX into PDF or Markdown, or from PDF into various Word formats.
  • Provides AI-powered features to summarize documents, translate content and check grammar, enhancing document intelligence and productivity.
  • Programmatic access to the formatting properties of all document elements. For example, using Aspose.Words users can split a document into parts or compare two documents.
  • High-fidelity rendering of document pages. For example, if it is necessary to render a document as in Microsoft Word, Aspose.Words will successfully cope with this task.
  • Generate reports with Mail Merge, which allows filling in merge templates with data from various sources to create merged documents.
  • LINQ Reporting Engine to fetch data from databases, XML, JSON, OData, external documents, and much more.

Supported Document Formats

Aspose.Words for Python supports a wide range of formats for loading and saving documents, some of them are listed below: Microsoft Word: DOC, DOT, DOCX, DOTX, DOTM, FlatOpc, FlatOpcMacroEnabled, FlatOpcTemplate, FlatOpcTemplateMacroEnabled, RTF, WordML, DocPreWord60 OpenDocument: ODT, OTT Web: HTML, MHTML Markdown: MD Markup: XamlFixed, HtmlFixed, XamlFlow, XamlFlowPack Fixed Layout: PDF, XPS, OpenXps Image: SVG, TIFF, PNG, BMP, JPEG, GIF Metafile: EMF Printer: PCL, PS Text: TXT eBook: MOBI, CHM, EPUB

Platform Independence

Aspose.Words for Python can be used to develop applications for a vast range of operating systems, such as Windows, Linux, and macOS, where Python 3.5 or later is installed. You can build both 32-bit and 64-bit Python applications.

Get Started

Ready to give Aspose.Words for Python a try?

Simply run pip install aspose-words from the Console to fetch the package. If you already have Aspose.Words for Python and want to upgrade the version, please run pip install --upgrade aspose-words to get the latest version.

You can run the following snippets in your environment to see how Aspose.Words works, or check out the GitHub Repository or Aspose.Words for Python Documentation for other common use cases.

Using Python to Create a DOCX File from Scratch

Aspose.Words for Python allows you to create a new blank document and add content to this document.

import aspose.words as aw

# Create a blank document.
doc = aw.Document()

# Use a document builder to add content to the document.
builder = aw.DocumentBuilder(doc)
# Write a new paragraph in the document with the text "Hello World!".
builder.writeln("Hello, World!")

# Save the document in DOCX format. Save format is automatically determined from the file extension.
doc.save("Output.docx")

Using Python to Convert a Word Document to HTML

Aspose.Words for Python also allows you to convert Microsoft Word formats to PDF, XPS, Markdown, HTML, JPEG, TIFF, and other file formats. The following snippet demonstrates the conversion from DOCX to HTML:

import aspose.words as aw

# Load the document from the disc.
doc = aw.Document("Document.docx")

# Save the document to HTML format.
doc.save("Output.html")

Using Python to Import PDF and Save as a DOCX File

In addition, you can import a PDF document into your Python application and export it as a DOCX format file without the need to install Microsoft Word:

import aspose.words as aw

# Load the PDF document from the disc.
doc = aw.Document("Document.pdf")

# Save the document to DOCX format.
doc.save("Output.docx")

Translate a Word document using your preferred AI model, such as OpenAI or Google models.

import aspose.words as aw

doc = aw.Document("Document.docx")

# Use Google generative language models.
model = aw.ai.AiModel.create(aw.ai.AiModelType.GEMINI_15_FLASH).with_api_key("API_KEY").as_google_ai_model()

translated_doc = model.translate(doc, aw.ai.Language.ARABIC)
translated_doc.save("Output.docx")

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Metadata

Release files for aspose-words 26.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for aspose-words 26.11.0
File Actions
aspose_words-26.11.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for aspose_words-26.11.0-py3-none-win_amd64.whl
aspose_words-26.11.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for aspose_words-26.11.0-py3-none-win32.whl
aspose_words-26.11.0-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for aspose_words-26.11.0-py3-none-manylinux1_x86_64.whl
aspose_words-26.11.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for aspose_words-26.11.0-py3-none-macosx_11_0_arm64.whl
aspose_words-26.11.0-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details for aspose_words-26.11.0-py3-none-macosx_10_14_x86_64.whl

Total release size: 443.3 MB

Release files / aspose_words-26.11.0-py3-none-win_amd64.whl

Download URL aspose_words-26.11.0-py3-none-win_amd64.whl
Size 95.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
bf4f95774c67a1d3ed6f8b81a8c42f1988cf1b90f221615d706ebf858097bdd0
BLAKE2b-256 checksum
How to use checksums
05120efbb4947e981bccdd4e6b4548ed486d54ffbcdac61c7e7e160d64367904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Release files / aspose_words-26.11.0-py3-none-win32.whl

Download URL aspose_words-26.11.0-py3-none-win32.whl
Size 87.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
6c6ed6fb70dd6d4b85aafbe31c93b053e4febb3b4b130138f14ced4a11e1ff02
BLAKE2b-256 checksum
How to use checksums
b6adacd0aa09816a1bfa0723747310954e11460a8ee5ca48e4d2f06d61ab66e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Release files / aspose_words-26.11.0-py3-none-manylinux1_x86_64.whl

Download URL aspose_words-26.11.0-py3-none-manylinux1_x86_64.whl
Size 94.8 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
75ea48f7f9d98e6c75e0b74bde35d99507d6005a249484d2e5ca201c7b2959c8
BLAKE2b-256 checksum
How to use checksums
4c32f5b8bb15d9da0185bd10c3ccf1c6749975328a1691cfbe4b328f20b576d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Release files / aspose_words-26.11.0-py3-none-macosx_11_0_arm64.whl

Download URL aspose_words-26.11.0-py3-none-macosx_11_0_arm64.whl
Size 75.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
00832941ef36078c698b61239dbfaf932b968164321f92bd9fc0ea38e73d2b4f
BLAKE2b-256 checksum
How to use checksums
8ef4784e5d9ce99723d67bb59df9eefd02a3989921bb0e23b21a16a641716e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Release files / aspose_words-26.11.0-py3-none-macosx_10_14_x86_64.whl

Download URL aspose_words-26.11.0-py3-none-macosx_10_14_x86_64.whl
Size 89.7 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
7e00d082842e72bb3c7ce1529e97f640e0788a72fb8af4e3e28ef081d84d24ca
BLAKE2b-256 checksum
How to use checksums
519137bbd55ba9d2a0733038b0c4164a0ff97a043e793f873f6be12ff426f591
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.0

Security for aspose-words 26.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page