python libraries that have the token retrieval pre-built

how should I set up credentials so that it can make requests via API? Can I get an access token and snip of code for authenticating in python?, is there any python libraries that have the token retrieval pre-built already?

Answers