googleapis / google-auth-library-python

Google Auth Python Library
https://googleapis.dev/python/google-auth/latest/
Apache License 2.0
784 stars 309 forks source link

Google Auth Python Library

|pypi|

This library simplifies using Google's various server-to-server authentication mechanisms to access Google APIs.

.. |pypi| image:: https://img.shields.io/pypi/v/google-auth.svg :target: https://pypi.python.org/pypi/google-auth

Installing

You can install using pip_::

$ pip install google-auth

.. _pip: https://pip.pypa.io/en/stable/

For more information on setting up your Python development environment, please refer to Python Development Environment Setup Guide_ for Google Cloud Platform.

.. _Python Development Environment Setup Guide: https://cloud.google.com/python/docs/setup

Extras

google-auth has few extras that you can install. For example::

$ pip install google-auth[pyopenssl]

Note that the extras pyopenssl and enterprisecert should not be used together because they use conflicting versions of cryptography.

.. _cryptography: https://cryptography.io/en/latest/

Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ Python >= 3.7

NOTE: Python 3.7 was marked as unsupported_ by the python community in June 2023. We recommend that all developers upgrade to Python 3.8 and newer as soon as they can. Support for Python 3.7 will be removed from this library after January 1 2024. Previous releases that support Python 3.7 will continue to be available for download, but releases after January 1 2024 will only target Python 3.8 and newer.

.. _unsupported: https://devguide.python.org/versions/#unsupported-versions

Unsupported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Documentation

Google Auth Python Library has usage and reference documentation at https://googleapis.dev/python/google-auth/latest/index.html.

Current Maintainers

Authors

Contributing

Contributions to this library are always welcome and highly encouraged.

See CONTRIBUTING.rst_ for more information on how to get started.

.. _CONTRIBUTING.rst: https://github.com/googleapis/google-auth-library-python/blob/main/CONTRIBUTING.rst

License

Apache 2.0 - See the LICENSE_ for more information.

.. _the LICENSE: https://github.com/googleapis/google-auth-library-python/blob/main/LICENSE