Auth Helpers for Asyncio Google Cloud Library
This library is not meant to be a standalone project, rather it is used by various gcloud-aio-* packages.
This library implements a Token class, which is used for authorizing against Google Cloud. The other gcloud-aio-* package components accept a Token instance as an argument; you can define a single token for all of these components or define one for each. Each component corresponds to a given Google Cloud service and each service requires “scopes”.
Installation
$ pip install --upgrade gcloud-aio-auth
Usage
from gcloud.aio.auth import Token
token = Token()
Additionally, the Token constructor accepts the following optional arguments:
service_file: path to a service account, authorized user file, or any other application credentials. If omitted, will attempt to find one on your path or fallback to generating a token from GCE metadata.
session: an aiohttp.ClientSession instance to be used for all requests. If omitted, a default session will be created.
scopes: an optional list of GCP scopes for which to generate our token. Only valid (and required!) for service account authentication.
Contributing
Please see our contributing guide.
Metadata
Release files for gcloud-aio-auth 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcloud-aio-auth-2.0.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcloud_aio_auth-2.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / gcloud-aio-auth-2.0.0.tar.gz
| Download URL | gcloud-aio-auth-2.0.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f94209abbae6398b0db6f20365ef32b8b3a3ffc6b1f37d1e798f4be10d31582
|
|
BLAKE2b-256 checksum How to use checksums |
73d8ca0f1f3786814aecb82a1023d3d119bcc40010c892668b1edb455f0447bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.0
|
Release files / gcloud_aio_auth-2.0.0-py2.py3-none-any.whl
| Download URL | gcloud_aio_auth-2.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bbd2e93861373e520cbf35de6d4da7a763f7de8ed0bb2b4e17a12487df8233ce
|
|
BLAKE2b-256 checksum How to use checksums |
e22287bccc3b3a7488ad2cf6253b5c425f2bef050d73bd9d673377925933a93c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.0
|