Github app user authentication

Hi guys, I am new to github.
I was previously using PAT to access repo in github but want to explore github apps.
Now that I have installed github app on a particular repository How can I include authentication in my python code for that.
Earlier I user a global variable as GITHUB_ACCESS_TOKEN and given my PAT value and used it.
Please help me out.
Thank you.