Skip to main content

Google python client used at Alkivi

Project description

Build Status Requirements Status

Google python client used at Alkivi

Package

Example

from alkivi.google import client as google
import logging

scope = 'https://www.googleapis.com/auth/admin.directory.user.readonly'
google_client = google.Client(scopes=[scope])

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

Credentials are check from - ./google.conf - $HOME/.google.conf - /etc/google.conf

Tests

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.

TODO

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.

TODO

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 alkivi-google-client, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size alkivi_google_client-1.0.1-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size alkivi-google-client-1.0.1.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

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