VOOZH about

URL: https://pypi.org/project/aspose-words/

⇱ aspose-words Β· PyPI


Skip to main content

aspose-words 26.6.0

pip install aspose-words

Latest release

Released:

Aspose.Words for Python is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation.

Navigation

Verified details

These details have been verified by PyPI
Maintainers
πŸ‘ Avatar for aspose from gravatar.com
aspose πŸ‘ Avatar for asposewords from gravatar.com
asposewords

Unverified details

These details have not been verified by PyPI
Project links
Meta
  • License: Free To Use But Restricted, Other/Proprietary License
  • Author: Aspose
  • Tags doc , docx to pdf , convert , compare , create , edit , word , split , bmp , rtf , odt , open office , html , tiff , dot , wordml , mobi , chm , txt , md , markdown , xps , svg , ps , postscript , pcl , epub , png , emf , jpg , gif , mail merge , table , reporting , document
  • Requires: Python <3.14, >=3.6

Project description

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.

importaspose.wordsasaw

# 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:

importaspose.wordsasaw

# 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:

importaspose.wordsasaw

# 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.

importaspose.wordsasaw

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

Project details

Verified details

These details have been verified by PyPI
Maintainers
πŸ‘ Avatar for aspose from gravatar.com
aspose πŸ‘ Avatar for asposewords from gravatar.com
asposewords

Unverified details

These details have not been verified by PyPI
Project links
Meta
  • License: Free To Use But Restricted, Other/Proprietary License
  • Author: Aspose
  • Tags doc , docx to pdf , convert , compare , create , edit , word , split , bmp , rtf , odt , open office , html , tiff , dot , wordml , mobi , chm , txt , md , markdown , xps , svg , ps , postscript , pcl , epub , png , emf , jpg , gif , mail merge , table , reporting , document
  • Requires: Python <3.14, >=3.6

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more about wheel file names.

Copy a direct link to the current filters

aspose_words-26.6.0-py3-none-win_amd64.whl (67.9 MB view details)

Uploaded Python 3Windows x86-64

aspose_words-26.6.0-py3-none-win32.whl (59.7 MB view details)

Uploaded Python 3Windows x86

aspose_words-26.6.0-py3-none-manylinux1_x86_64.whl (90.4 MB view details)

Uploaded Python 3

aspose_words-26.6.0-py3-none-macosx_11_0_arm64.whl (72.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

aspose_words-26.6.0-py3-none-macosx_10_14_x86_64.whl (86.5 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

File details

Details for the file aspose_words-26.6.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for aspose_words-26.6.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 eb91050014a4e5eb1a80b3e730eca0757d3b86693cb9ba660c33ef8d0c06d0b6
MD5 24826ecff7bef7035897e8d36a44d6fe
BLAKE2b-256 f1cd686174f25223474d682f33b4ce229fb88b677597b2a5afeb2cad2f9fa4a2

See more details on using hashes here.

File details

Details for the file aspose_words-26.6.0-py3-none-win32.whl.

File metadata

  • Download URL: aspose_words-26.6.0-py3-none-win32.whl
  • Upload date:
  • Size: 59.7 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for aspose_words-26.6.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 b5569624f2d16f1fac172f929c846cfd8e88a9b6a0f67eb5e4a9239e43aeab6d
MD5 e90d4f4531d8cb403f258f9ab5a38972
BLAKE2b-256 f949378b8f7cdddd38b71ba31868452b7b13b21a28cdc6641274f89497b10476

See more details on using hashes here.

File details

Details for the file aspose_words-26.6.0-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for aspose_words-26.6.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5be2880bc1df1dee0a903917392b26738ec70d8380cd24847bbb12b541e298dc
MD5 86b086e1fe3765d44452d33fba99c0ea
BLAKE2b-256 e94702f2678940ce67187d653578e950022fa419e3ec633775facab41de42c3f

See more details on using hashes here.

File details

Details for the file aspose_words-26.6.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aspose_words-26.6.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a95c0e50a912be7930885fa931cf3f0ed99e4f8cdbce8c7c110367a1c5f8cd6
MD5 edffea7689352c957bd0b8a88a6f26db
BLAKE2b-256 6fdc1f60738d86f97e12fe110f9521de14901f936594af45f799d661b7a3cb4f

See more details on using hashes here.

File details

Details for the file aspose_words-26.6.0-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for aspose_words-26.6.0-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 a5aa1bbee6394473a3c776621ca426651c9ea9dd31884ad80fa8d55efad696e0
MD5 f0562cbc5148ee81db5282861adc23db
BLAKE2b-256 493214c8c94f5407fc5ab1b7a920abe532cbc6bbe9224948ac1d3f3f8975bd83

See more details on using hashes here.

Supported by

πŸ‘ Image
AWS Cloud computing and Security Sponsor πŸ‘ Image
Datadog Monitoring πŸ‘ Image
Depot Continuous Integration πŸ‘ Image
Fastly CDN πŸ‘ Image
Google Download Analytics πŸ‘ Image
Pingdom Monitoring πŸ‘ Image
Sentry Error logging πŸ‘ Image
StatusPage Status page