This part of the documentation covers the GitHub object. A
large portion of what you will likely want to do can be found in this class. If
you’re looking for anonymous functions, you’re most likely looking for the
API.

OAuth applications can use this method to check token validity
without hitting normal rate limits because of failed login attempts.
If the token is valid, it will return True, otherwise it will return
False.

For GitHub Enterprise users, this object will act as the public API to
your instance. You must provide the URL to your instance upon
initialization and can provide the rest of the login details just like in
the GitHub object.

There is no need to provide the end of the url (e.g., /api/v3/), that will
be taken care of by us.

If you have a self signed SSL for your local github enterprise you can
override the validation by passing verify=False.