Django Google Credentials
Stores Google OAuth credentials in Django ORM for easy API service access.
Installation:
Install or add django-google-credentials to your Python path.
Add google_credentials to your INSTALLED_APPS setting.
Add google_credentials URL include to your project’s urls.py file:
url(r'^google-credentials/', include('google_credentials.urls')),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).
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'
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.
Metadata
Release files for django-google-credentials 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-google-credentials-0.0.2.tar.gz | 4.1 kB | Without provenance | Details for django-google-credentials-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_google_credentials-0.0.2-py2.7.egg | Legacy Egg format | - | - | Details for django_google_credentials-0.0.2-py2.7.egg |
Total release size: 11.4 kB
Release files / django-google-credentials-0.0.2.tar.gz
| Download URL | django-google-credentials-0.0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbef126c0e9fe29b4fa71fc3f69fdf5d34c9cb39efc3d48ccefd07e4ffddfc96
|
|
BLAKE2b-256 checksum How to use checksums |
01ac4fc1de17735b407e4f19ecaf929c493b9f92c0e138a8d337f227fc0d60b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_google_credentials-0.0.2-py2.7.egg
| Download URL | django_google_credentials-0.0.2-py2.7.egg |
|---|---|
| Size | 7.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
95834fd2373dbc75e2470fb1686d9aab2e7737e1997bb36e0acc2021807641ff
|
|
BLAKE2b-256 checksum How to use checksums |
2b9fcb91b2117bb25f1835d3240895ff858272073810154b1d0e564a46f13da4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-google-credentials 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.