Is that possible to load the files in parallel by using lseg lib or it's allowed to run multiple connections to platform (using any multiprocessing /multithreading options in python)
Hello @RomanK
Thank you for reaching out. If you are using the the CFS module (import lseg.data.delivery.cfs as cfs) of the https://developers.lseg.com/en/api-catalog/lseg-data-platform/lseg-data-library-for-python , the cfs.file_sets.Definition and cfs.files.Definitionprovide the get_data_async() method to get the file set response asynchronously for you. You can use the get_data_async() method for parallel requests filesets and file_ids with the Python Asyncio library.
import lseg.data.delivery.cfs as cfs
cfs.file_sets.Definition
cfs.files.Definition
get_data_async()
However, the CFS File Download module (cfs.file_downloader.Definition) supports the synchronous download method only.
cfs.file_downloader.Definition
If you are using pure Python, you can use any HTTP libraries that native support Asynchronous requests like httpx or aiohttp to request fileSets, file_ids, and download bulk files in parallel.