{"id":32611231,"url":"https://github.com/mitvix/gprice","last_synced_at":"2026-07-02T12:35:46.209Z","repository":{"id":320381007,"uuid":"1081870803","full_name":"mitvix/gprice","owner":"mitvix","description":"Google Cloud Platform Price List from SKU","archived":false,"fork":false,"pushed_at":"2025-10-23T12:31:43.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T14:32:47.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitvix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-23T12:10:16.000Z","updated_at":"2025-10-23T12:31:47.000Z","dependencies_parsed_at":"2025-10-23T14:39:35.731Z","dependency_job_id":null,"html_url":"https://github.com/mitvix/gprice","commit_stats":null,"previous_names":["mitvix/gprice"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mitvix/gprice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitvix%2Fgprice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitvix%2Fgprice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitvix%2Fgprice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitvix%2Fgprice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitvix","download_url":"https://codeload.github.com/mitvix/gprice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitvix%2Fgprice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281818072,"owners_count":26566859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-30T13:56:30.693Z","updated_at":"2025-10-30T13:57:03.762Z","avatar_url":"https://github.com/mitvix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gprice\nGoogle Cloud Platform Price List from SKU\n\nFerramenta de extração dos dados da Price List do Google GCP para análise e validação.\n\n## Overview\n\nEste utilitário realiza o processamento de dados a partir do relatório de Cost Table (Tabela de Custo de mês fechado) do Google GCP e valida o preço unitário a partir da Price List online do Google contido em https://cloud.google.com/skus?currency=USD\n\n## Funcionamento\n\nO funcionamento é simples, este código utiliza o cURL para consultar via método POST o endereço https://cloud.google.com/skus para cada linha do relatório do Cost Table, a resposta é um bloco de dados JSON que possui um JSON Hijacking Prevention que é interpretado usando regex para obter o valor unitário do preço de lista em USD por SKU. E ao final alimenta um novo arquivo .CSV com as novas colunas de validação.\n\n## Instalação\n\nEste código foi escrito em GOLANG, para instalação do Go siga o passo a passo disponível em [https://go.dev/doc/tutorial/getting-started#install](go.dev). \n\nDownload e preparação\n```\ngit clone https://github.com/mitvix/gprice\ncd gprice\ngo build -o gprice main.go\nsudo mv gprice /usr/local/bin/gprice\n```\n\n## Uso\n\n```\ngprice arquivo_table_cost.csv valor_do_dólar\n\nou\n\ngo run main.go arquivo_table_cost.csv valor_do_dólar\n```\n\n\n### Exemplo\n\n```\ngprice Table_Price_GCP_2025-08.csv 5,7004\n```\n\n## Pré-Requisitos\n\n* cURL https://curl.se/download.html  \n* Golang \u003e 1.24 https://go.dev/doc/install\n\n\n## Licença e Uso\n\n_Este Software é distribuído sob licença GNU GENERAL PUBLIC LICENSE Version 3 onde é permitido o uso, modificação e distribuição, mantendo o padrão de\nsoftware livre. O autor deste software NÃO OFERECE NENHUMA GARANTIA DE USO E FUNCIONAMENTO e o seu uso deve ser feito por conta e risco sem qualquer\nresponsabilidade do autor. O seu uso determina que reconhece e aceita os Termos de Uso aqui aplicados. Licensa GPL3 https://www.gnu.org/licenses/gpl-3.0.pt-br.html_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitvix%2Fgprice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitvix%2Fgprice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitvix%2Fgprice/lists"}