To manage and connect to Azure EventHubs using Python you can use the azure-eventhubs and azure-identity SDKs.
check the below link:
https://medium.com/@vjay.net/connecting-to-azure-event-hub-c-and-python-examples-for-key-based-and-msi-based-authentication-9529298519ba