Python package for communicating with the GroupDocs.Parser Cloud API. This SDK allows you to work with GroupDocs.Parser Cloud REST APIs in your python applications.
Python 3.4+
Install groupdocs-parser-cloud with PIP from PyPI by:
pip install groupdocs-parser-cloudOr clone repository and install it via Setuptools:
python setup.py installPlease follow the installation procedure and then run following:
# Import modules
import groupdocs_parser_cloud
from Common import Common
# This example demonstrates how to parse a document using template object.
class ParseByTemplateDefinedAsAnObject:
@classmethod
def Run(cls):
parseApi = groupdocs_parser_cloud.ParseApi.from_config(Common.GetConfig())
options = groupdocs_parser_cloud.ParseOptions()
options.file_info = groupdocs_parser_cloud.FileInfo()
options.file_info.file_path = "words-processing/docx/companies.docx"
options.template = Common.GetTemplate()
request = groupdocs_parser_cloud.ParseRequest(options)
result = parseApi.parse(request)
for data in result.fields_data:
if data.page_area.page_text_area is not None:
print("Field name: " + data.name + ". Text :" + data.page_area.page_text_area.text)
if data.page_area.page_table_area is not None:
print("Table name: " + data.name)
for cell in data.page_area.page_table_area.page_table_area_cells:
print("Table cell. Row " + str(cell.row_index) + " column " + str(cell.column_index) + ". Text: " + cell.page_area.page_text_area.text);GroupDocs.Parser Cloud Python SDK licensed under MIT License.
Your feedback is very important to us. Please feel free to contact us using our Support Forums.