GCP Python Client Functions
Installation
Launch a terminal and install by entering:
conda install gcp_python_client_functions
…or
pip install gcp_python_client_functions
Usage Prerequisites
1. GCP environment
- Create a GCP project by going to the Resource Manager page in the cloud console (cloud resources naming convention).
- Enable billing for the project you’ll work with by going to the Cloud Billing page and selecting your project on the top right corner (300 USD free credits are associated with new billing accounts + a big list of free tier products).
- Enable BigQuery API by going to APIs & Services page on the cloud console and looking for the BigQuery API.
2. Authentication
Authenticating by… - (locally) using the Google Cloud SDK(installation needed). Launch a terminal enter:
gcloud auth login --update-adc
- (elsewhere) downloading a service account JSON keyfile and point to it using an environment variable:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"
- or through Workflow Identity Provider (what we used to authenticate within GitHub Actions, see Cloud Advocate’s video and stackoverflow question for additional support).
How to use
from gcp_python_client_functions.clients import *
PROJECT_ID = 'dz-learning-d'
# BigQuery
bq_obj = BigQuery(PROJECT_ID)
# Cloud Storage
stg_obj = Storage(PROJECT_ID)
Metadata
Release files for gcp-python-client-functions 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gcp-python-client-functions-0.0.1.tar.gz | 9.6 kB | Without provenance | Details for gcp-python-client-functions-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gcp_python_client_functions-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for gcp_python_client_functions-0.0.1-py3-none-any.whl |
Total release size: 19.0 kB
Release files / gcp-python-client-functions-0.0.1.tar.gz
| Download URL | gcp-python-client-functions-0.0.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d437a6e00af8d073f2822011bed9582461ec9302f00c43cb43e1172d48b9d63b
|
|
BLAKE2b-256 checksum How to use checksums |
bfaf9b4ce83f85009dc4fd020e03d7a54929add9cd5176e1d73e8b8949932080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / gcp_python_client_functions-0.0.1-py3-none-any.whl
| Download URL | gcp_python_client_functions-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6e2f387f79b1ebb37354c9fa22a495cd8b5015395a1e3749ef208fa0ee055fd
|
|
BLAKE2b-256 checksum How to use checksums |
0056d6a21ad98843a27cbae583fa7932bf55f742b8ad3826356ef65f9025e52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for gcp-python-client-functions 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.