Working with the gmail API in Python Steps: create new Google developers console project enable the gmail API create credentials - public - OAuth 2.0 write/configure python program