Skip to content

Installation

Requirements

Before installing, make sure you have:

  • Python 3.9 or higher
  • Django 3.1 or higher
  • A Google Cloud project with OAuth2 credentials (setup guide)

Install the Package

pip install django-gauth
pip install git+https://github.com/masterPiece93/django-gauth.git
pip install -e git+https://github.com/masterPiece93/django-gauth.git#egg=django_gauth
pip install git+https://github.com/masterPiece93/django-gauth.git@v0.2.0#egg=django_gauth

What Gets Installed

graph TD
    A[django-gauth] --> B[google-auth-oauthlib]
    B --> C[google-auth]
    B --> D[requests-oauthlib]
    C --> E[cachetools]
    C --> F[pyasn1-modules]
    A --> G[Django >= 3.1]

    style A fill:#4CAF50,color:white,stroke:none
    style G fill:#092E20,color:white,stroke:none

Lightweight

django-gauth has only 2 direct dependencies beyond Django:

  • google-auth-oauthlib — Google's official OAuth2 library
  • Django — your web framework

Using django-gauth < 0.2.1?

Older releases do not pin google-auth-oauthlib. To avoid PKCE-related OAuth failures, pin it explicitly in your project's requirements:

google-auth-oauthlib<1.3.0,>=1.0.0

Versions 0.2.1 and newer include this pin automatically — just upgrade and you're covered.

Verify Installation

After installing, confirm it's available:

>>> import django_gauth
>>> print(django_gauth.__name__)
'django_gauth'

Next Steps

Continue to Quickstart →