Feature: add a new get_uploaded_file_objects
that generates structued objects with the file metadata
#434
Labels
enhancement
New feature or request
Feature Type
Other
Description
The current options for retrieving uploaded files are
Client.get_uploaded_files
Client.download_files
The first one returns the raw response from LimeSurvey, and leaves everything else up to the user: base64-decoding the contents, inspect the response dictionary for the filename, size and other keys, etc. The second one offers little flexibility as files as access to the Python file-like objects is hidden to the user.
A new
Client.get_uploaded_file_objects
that yields instance of a newUploadedFile
dataclass would give the users flexibility while doing the grunt work of inspecting the dictionary and decoding the contents for them.The text was updated successfully, but these errors were encountered: