Skip to main content

Aspose.Words for Cloud API Reference

Project description

Aspose.Words Cloud SDK for Python

This repository contains Aspose.Words Cloud SDK for Python source code. This SDK allows you to work with Aspose.Words Cloud REST APIs in your Python applications quickly and easily, with zero initial cost.

Aspose.Words Cloud
API Reference

Key Features

  • Conversion between various document-related formats (20+ formats supported), including PDF<->Word conversion
  • Mail merge and reports generation
  • Splitting Word documents
  • Accessing Word document metadata and statistics
  • Find and replace
  • Watermarks and protection
  • Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others

How to use the SDK?

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get PyPi (recommended). For more details, please visit our documentation website.

Prerequisites

To use Aspose Words for Cloud Python SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install aspose-words-cloud

(you may need to run pip with root permission: sudo pip install aspose-words-cloud)

Then import the package:

import asposewordscloud

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import asposewordscloud

Getting Started

Please follow the installation procedure and then run the following:

import asposewordscloud
import asposewordscloud.models.requests
words_api = asposewordscloud.WordsApi(AppSid, AppKey, Host)
remote_name = 'TestDeleteWatermark.docx'

upload_request = asposewordscloud.models.requests.UploadFileRequest(file, remote_name)
upload_result = self.words_api.upload_file(request)
self.assertTrue(upload_result.code == 200, 'Error has occurred while uploading document')

request = asposewordscloud.models.requests.DeleteWatermarkRequest(remote_name)
result = words_api.delete_watermark(request)
self.assertTrue(result.code == 200, 'Error has occurred while deleting document watermark')

Test contain various examples of using the SDK. Please put your credentials into Configuration.

Dependencies

  • Python 3.7
  • referenced packages (see here for more details)

Licensing

All Aspose.Words Cloud SDKs, helper scripts and templates are licensed under MIT License.

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.

Resources

Website
Product Home
API Reference
Documentation
Blog

Other languages

We generate our SDKs in different languages so you may check if yours is available in our list.

If you don't find your language in the list, feel free to request it from us, or use raw REST API requests as you can find it here.

Project details


Download files

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

Source Distribution

aspose-words-cloud-20.3.0.tar.gz (272.4 kB view hashes)

Uploaded Source

Built Distribution

aspose_words_cloud-20.3.0-py2-none-any.whl (806.3 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page