Skip to main content

Garpun Authentication Library

Project description

build pypi

This library simplifies using Garpun’s various server-to-server authentication mechanisms to access Garpun APIs.


You can install using pip:

$ pip install garpunauth

Supported Python Versions

Python >= 3.6


# Use it for first auth with your scopes
from garpunauth.client import GarpunCredentials

credentials, project_id = GarpunCredentials.authenticate_user(['cloud-platform'])

print(u"credentials.access_token = %s" % str(credentials.access_token))
print(u"credentials.access_token_expired = %s" % str(credentials.access_token_expired))
print(u"credentials.refresh_token = %s" % str(credentials.refresh_token))

# Refresh access_token if it expired

print(u"credentials.access_token = %s" % str(credentials.access_token))

For contributors

  1. Use make black for blacken the code
  2. Use nox for run tests and other checks
  3. Set PyCharm default test runner to pytest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for garpunauth, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size garpunauth-0.0.7-py2.py3-none-any.whl (9.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size garpunauth-0.0.7.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page