23
Jun
Written by: Jonathan Maron. Stored in: Community, LiveDocx.

Despite this blog being about using LiveDocx in PHP, I am often asked whether it is possible to use LiveDocx in Python.

As LiveDocx is a SOAP service, it is possible to use LiveDocx in any programming language that supports SOAP. Python supports SOAP, hence LiveDocx may be used in Python. However, it is always easiest, if a native adapter is available.

Radoslaw Benkel (@singlespl) has recently published such a native adapter, which makes using LiveDocx in Python a breeze.

Take a look a his GitHub repository for details:
https://github.com/singles/python_livedocx

To use this library, all you have to do is as follows:

from livedocx import LiveDocx
 
ld = LiveDocx()
ld.login('username', 'password')
ld.set_local_template('path/to/template.doc')
 
ld.assign_value('software', 'python_livedocx')
ld.assign_value('license', 'MIT')
 
ld.create_document()
 
data = ld.retrieve_document('PDF')
 
file = open('software info.pdf', 'wb')
file.write(data)
file.close()

If anyone else has written libraries to use LiveDocx in Python and would be willing to share details, please post a comment below.

Thank you, Radoslaw Benkel, for your contribution to the LiveDocx community.

Leave a Reply