No project description provided
Project description
GCP Compute Machines Costs
This repository provides python module for scraping and exporting GCP Compute Machines metadata and costs information.
Requirements
- python >= 3.12
- GCP service account with the next assigned permissions:
- compute.machineTypes.list
- compute.regions.list
- compute.zones.list
Installation
pip install gcp-compute-machines
Usage
Create new file scrape.py with the next content and change gcp_project_name and gcp_sa_account_path variables.
from gcp_compute_machines import InstanceScraper
gcp_project_name = 'CHANGE_ME'
gcp_sa_account_path = 'CHANGE_ME'
scraper = InstanceScraper(
gcp_project=gcp_project_name,
sa_path=gcp_sa_account_path
)
scraper.run(
# dump=True means that app saves the scrapped SKUs data locally for future reuses.
dump=True,
# Set load=True if you want to use local SKUs data between sequential runs.
load=True
)
scraper.dump_pricing_info(
raw_pricing_data_file_path='./data/raw_gcp_machines_pricing.yaml',
flat_pricing_data_file_path='./data/flat_gcp_machines_pricing.yaml'
)
License
This project is under the Apache License, Version 2.0 unless noted otherwise.
Important info
Please note this project is not an official Google product.
That means no warranty in costs data integrity. Use scraped data wisely.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gcp_compute_machines-0.0.1.tar.gz.
File metadata
- Download URL: gcp_compute_machines-0.0.1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
611babbcff0a4b606cc27666f2293eebb9a731719a78205c4070cdef800ee86f
|
|
| MD5 |
a72d4002df3043ccd2864f0b53868cf0
|
|
| BLAKE2b-256 |
8d7708f84c8f50a34b5775f6590739c6d6f7c305e88351c27c26adcbb533a2eb
|
Provenance
The following attestation bundles were made for gcp_compute_machines-0.0.1.tar.gz:
Publisher:
publish.yml on vbutoma/gcp-compute-machines-costs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcp_compute_machines-0.0.1.tar.gz -
Subject digest:
611babbcff0a4b606cc27666f2293eebb9a731719a78205c4070cdef800ee86f - Sigstore transparency entry: 159656656
- Sigstore integration time:
-
Permalink:
vbutoma/gcp-compute-machines-costs@267967603ae3a7acfd6f3c806a50703c1a685f5b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vbutoma
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@267967603ae3a7acfd6f3c806a50703c1a685f5b -
Trigger Event:
push
-
Statement type:
File details
Details for the file gcp_compute_machines-0.0.1-py3-none-any.whl.
File metadata
- Download URL: gcp_compute_machines-0.0.1-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
513feab2aeaf5067c2982c8abcc6a1c9afb940c5cf987f2ddd0a1df0061e9598
|
|
| MD5 |
f58f8e559bec8c5abab9776456610310
|
|
| BLAKE2b-256 |
0b5dbc0d3d6fac72cc9cdae6096f03a37d8b9f05dc4b4aa07a54df7fda49e491
|
Provenance
The following attestation bundles were made for gcp_compute_machines-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on vbutoma/gcp-compute-machines-costs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gcp_compute_machines-0.0.1-py3-none-any.whl -
Subject digest:
513feab2aeaf5067c2982c8abcc6a1c9afb940c5cf987f2ddd0a1df0061e9598 - Sigstore transparency entry: 159656660
- Sigstore integration time:
-
Permalink:
vbutoma/gcp-compute-machines-costs@267967603ae3a7acfd6f3c806a50703c1a685f5b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vbutoma
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@267967603ae3a7acfd6f3c806a50703c1a685f5b -
Trigger Event:
push
-
Statement type: