Extract body, to, from the .pst files using python

Hi Team,
Hope you are well. I am new to python. But i have a task in hand to extract the body, to, from from the .pst files using python.

Can you please share me the end to end code to execute ?

Thanks for the support,

@srisai08

Please read the following articles about working with PST. You can find the code examples and other detail in these articles.
Working with Outlook Storage Files (OST Or PST)
Working with Messages in a PST File