This repository contains GroupDocs.Assembly Cloud SDK for Python source code. This SDK allows you to work with GroupDocs.Assembly Cloud REST APIs in your Python applications quickly and easily, with zero initial cost.
See API Reference for full API specification.
- API to Define Templates, Fetch Data Source, Insert Data in Template & Generate on the fly Reports.
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).
To use GroupDocs.Assembly for Cloud Python SDK you need to register an account with GroupDocs Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.
If the python package is hosted on Github, you can install directly from Github
pip install groupdocs-assembly-cloud(you may need to run pip with root permission: sudo pip install groupdocs-assembly-cloud)
Then import the package:
import groupdocsassemblycloudInstall 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 groupdocsassemblycloudimport groupdocsassemblycloud
import groupdocsassemblycloud.models.requests
filename = 'TemplateFile'
with open(os.path.join(DataFile)) as f:
data = f.read()
remote_name = os.path.join(self.remote_test_folder, filename)
self.uploadFileToStorage(open(os.path.join(self.local_test_folder, filename), 'rb'), remote_name)
template_file_info = groupdocsassemblycloud.models.TemplateFileInfo(remote_name)
assemble_data = groupdocsassemblycloud.models.AssembleOptions(template_file_info, "pdf", data)
request = groupdocsassemblycloud.models.requests.AssembleDocumentRequest(assemble_data)
result = self.assembly_api.assemble_document(request)
self.assertTrue(len(result) > 0, 'Error has occurred while building document')Tests contain various examples of using the SDK. Please put your credentials into Configuration.
- Python 3.4+
- referenced packages (see here for more details)
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial