@Huma
Thank you for reaching out to us.
You can use the LSEG Data Library for Python to retrieve data through Workspace. The examples are on GitHub.
You can also refer to the Essential Guide to the Data Libraries - Generations of Python library (EDAPI, RDP, RD, LD) article.
Hello @Huma
There are also the following articles that might help you too.