Aspose.Words Cloud

Aspose.Words Cloud’s platform independent document manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and cloud.

With Aspose.Words Cloud you can modify and convert documents on the cloud. It supports DOC, DOCX, OOXML, RTF, HTML, OpenDocument, PDF, XPS, EPUB and many other formats. Aspose.Words Cloud is a complete solution for performing any operation you can wish to perform on a document in the cloud. Learn More

What’s new in the latest release

This is a major revamp release for Aspose.Words Cloud SDK for Python. It covers all the Aspose.Words Cloud APIs. This SDK provides a complete one-stop solution for integrating with powerful Aspose.Words Cloud APIs with Python, so you can perform any operation on a document in the cloud with minimum effort.

Source Code Repository

Complete source code of this release of Aspose.Words Cloud SDK for Python is freely available on your favorite GitHub repository.

  • Aspose.Words Cloud SDK for Python - v1.0.0

Setup

Aspose.Words Cloud SDK for Python is also available as released package in the PyPI (Python Package Index) . You can bypass GitHub source code repository and depend directly on the released package by installing from PyPI:

PyPI Aspose.Words Cloud SDK for Python Installation

 pip install asposewordscloud
OR
easy_install asposewordscloud 

Data

In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3th party cloud storage using Aspose.Storage Cloud SDK for Python.

Quick SDK Tutorial

 import asposewordscloud
from asposewordscloud.WordsApi import WordsApi
from asposewordscloud.WordsApi import ApiException

import asposestoragecloud 
from asposestoragecloud.StorageApi import StorageApi
from asposestoragecloud.StorageApi import ResponseMessage

apiKey = "XXXXX" #sepcify App Key
appSid = "XXXXX" #sepcify App SID
apiServer = "https://api.aspose.cloud/v3.0"
data_folder = "../../data/"

try:

    #Instantiate Aspose Storage API SDK
    storageapiClient = asposestoragecloud.ApiClient.ApiClient(apiKey, appSid, debug = True)
    storageApi = StorageApi(storageapiClient)
    #Instantiate Aspose Words API SDK
    apiClient = asposewordscloud.ApiClient.ApiClient(apiKey, appSid, debug = True)
    wordsApi = WordsApi(apiClient)

    #set input file name
    name = "SampleWordDocument"
    filename = name + ".docx"
    format = "pdf"

    #upload file to aspose cloud storage
    storageApi.PutCreate(filename, data_folder + filename)

    #invoke Aspose.Words Cloud SDK API to convert words document to required format
    response = wordsApi.GetDocumentWithFormat(name=filename, format=format)

    if response.Status == 'OK':
        #save response stream to file
        outfilename = "c:/temp/" + name + "." + format
        with open(outfilename, 'wb') as f:
                    for chunk in response.InputStream:
                        f.write(chunk)    

except ApiException as ex:
            print "ApiException:"
            print "Code:" + str(ex.code)
            print "Message:" + ex.message 

Aspose.Words Cloud API Documentation

Aspose.Words Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.Words Cloud REST API.

Aspose.Words Cloud SDK for Python Examples

Aspose.Words Cloud SDK for Python Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Words Cloud REST API. Please see the SDK examples of following categories.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.