Transkribus / TranskribusPyClient

A Pythonic API and some command line tools to access the Transkribus server via its REST API
GNU Lesser General Public License v3.0
27 stars 14 forks source link

Supporting document downloads as JSON as well as XML #3

Open psychemedia opened 4 years ago

psychemedia commented 4 years ago

The getDocByIdAsXml() method allows us to download a document as either as a text string or as a parsed XML object.

It would be useful to generalise this as getDocById(), with an argument switch allowing the user to select xml | json and the bParse flag, when set, returning the etree XML object or a Python dict correspondingly.