How to get Exchange e-mails in Python

My goal was to read e-mails from an Exchange server. I had previously found some scripts for reading e-mails through Outlook. However, I think using Outlook makes your code depend on an e-mail client, and I wanted to avoid that. Being on a business setting, the best approach is getting your info from the server, in this case, getting the e-mails from Microsoft Exchange. I created a simple Python script that could access a Microsoft Exchange Server (Exchange 2010, 2013, 2016, 2019, Online) and read e-mails from it. Using this script as a base, you can then elaborate and get only the specific e-mails you want. Would you like me to post the script here?