Skip to main content

Google python client used at Alkivi

Project description

Build Status Requirements Status

Google python client used at Alkivi



from import client as google
import logging

scope = ''

# Using default configuration
google_client = google.Client(scopes=[scope])

# Using specific endpoint
google_client = google.Client(endpoint='account2')

# Get directory client for Admin SDK api
impersonate = ''
directory_client = google_client.get_directory_client(impersonate)

# Get a gmail client for gmail API
gmail_client = google_client.get_gmail_client()


Credentials are fetched from, in priority order: - ./google.conf (script directory) - $HOME/.google.conf - /etc/google.conf


; general configuration: default endpoint

; configuration specific to 'account1' endpoint
; using can be
; - service: for Service Account
; - oauth: for OAuth authentification

; for Service Account

; other account configuration

; for OAuth


Testing is set up using pytest and coverage is handled with the pytest-cov plugin.

Run your tests with py.test in the root directory.

Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.


Travis CI

There is a .travis.yml file that is set up to run your tests for python 2.7 and python 3.2, should you choose to use it.


Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

alkivi_google_client-1.0.5-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded py2 py3

Supported by

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