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.

Source Distribution

alkivi-google-client-1.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alkivi_google_client-1.0.1-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file alkivi-google-client-1.0.1.tar.gz.

File metadata

File hashes

Hashes for alkivi-google-client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2ec2ab69569cc4efb2ded86f1a0fa588e2123628e76d7cc98973ae3ac94793c0
MD5 5bd09840da79697723327093115afe53
BLAKE2b-256 2d23ed3cf5157ec7bd099c626707c8e9f76be75250b681ae0b7137c8bef97c17

See more details on using hashes here.

File details

Details for the file alkivi_google_client-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for alkivi_google_client-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 828a51fb1a01d5a0c1c3b84dec045f0bf200a44e3c7074a504795fdf8d821427
MD5 bfdb0bbd16405074e7ba96231dd2ee31
BLAKE2b-256 f34ab61308c87f40792b23bd2ce75a48fd3a1d57b8a436589506f389aa401acb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page