Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-google-credentials

How to install django-google-credentials

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-google-credentials
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.0.2 Available View build log
Linux (64-bit)
0.0.2 Available View build log
 
License
BSD
Lastest release
version 0.0.2 on Nov 22nd, 2012

Stores Google OAuth credentials in Django ORM for easy API service access.

Installation:

  1. Install or add django-google-credentials to your Python path.

  2. Add google_credentials to your INSTALLED_APPS setting.

  3. Add google_credentials URL include to your project's urls.py file:

    url(r'^google-credentials/', include('google_credentials.urls')),
    
  4. Create your project on the Google API Console, specifying the redirect URL as http://your.domain.com/google-credentials/callback (or however you setup your urls.py as described above).

  5. Add the following settings to your project's settings.py file populated with values as retrieved from Google in the previous step, i.e.:

    GA_CLIENT_ID = '32749234234.apps.googleusercontent.com'
    GA_CLIENT_SECRET = 'DKSFY87sd6fHJGdsf6'
    GA_SCOPE = 'https://www.googleapis.com/auth/analytics.readonly'
    GA_REDIRECT_URI = 'http://your.domain.com/google-credentials/callback'
    
  6. Run syncdb to generate required models.

Usage

Before you can start using a service you have to authorize it with your Google account. To do this open http://your.domain.com/google-credentials/authorize in your browser.

Once authorized you can retrieve a service for further querying like so:

from google_credentials import utils

service = utils.get_service()

To purge previously generated credentials open http://your.domain.com/google-credentials/purge in your browser.

Subscribe to package updates

Last updated Nov 22nd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.