{"id":19809812,"url":"https://github.com/deepraj1729/gcp-cloud-billing-api","last_synced_at":"2026-04-10T15:01:52.308Z","repository":{"id":216548119,"uuid":"741621907","full_name":"deepraj1729/gcp-cloud-billing-api","owner":"deepraj1729","description":"Cloud Billing - Cost Monitoring and Alerting API for Google Cloud (Billing Exports)","archived":false,"fork":false,"pushed_at":"2024-01-10T20:44:40.000Z","size":296,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T06:45:44.542Z","etag":null,"topics":["bigquery","fastapi","gcp","python","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepraj1729.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-01-10T19:14:08.000Z","updated_at":"2024-01-15T19:07:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"1abc32f6-febe-4aa4-918c-7292b69ae338","html_url":"https://github.com/deepraj1729/gcp-cloud-billing-api","commit_stats":null,"previous_names":["deepraj1729/gcp-cloud-billing-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj1729%2Fgcp-cloud-billing-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj1729%2Fgcp-cloud-billing-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj1729%2Fgcp-cloud-billing-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepraj1729%2Fgcp-cloud-billing-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepraj1729","download_url":"https://codeload.github.com/deepraj1729/gcp-cloud-billing-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241153061,"owners_count":19918722,"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","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":["bigquery","fastapi","gcp","python","redis"],"created_at":"2024-11-12T09:18:19.827Z","updated_at":"2025-12-30T20:15:57.201Z","avatar_url":"https://github.com/deepraj1729.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-cloud-billing\nCloud Billing - Cost Monitoring and Alerting API for Google Cloud (Billing Exports)\n\n![Overview](media/infra.svg)\n\n## Use-Case:\nThe project connects to Google Cloud BigQuery having Billing Export to Analyse, Monitor and Alerts for Cloud Cost and caches the results in Redis.\n\n## Setup:\nTo setup the project locally, use Docker with docker-compose:\n\n    docker-compose up -d\n    \nThe server will be up and running at localhost:8080/\n\n## Authentication:\nProvide the environment variables defined in the `docker-compose.yml`. To authenticate to Google Cloud, you will need a Service Account JSON mounted on the container having path set to `GOOGLE_APPLICATION_CREDENTIALS`  environment variable.\n\n## Caching and Rate Limiting:\nCaching for BigQuery queries are done via Redis with a provided TTL expiry time.\nThe rate limiter is set that maintains a LRU cache in memory that creates mapping between user IP and requests hit per minute.\n\n## Documentation:\nThe documentation for the API will be available at `/docs` route serving via `Swagger`. This is thanks to the FastAPI integration with Swagger UI.\n\n![Demo](media/demo.png)\n\n## References:\nThe references for this project are mentioned below:\n\n- [GCP Billing Export to BigQuery](https://cloud.google.com/billing/docs/how-to/export-data-bigquery)\n\n- [FastAPI Documentation](https://fastapi.tiangolo.com/)\n\n- [Docker Documentation](https://docs.docker.com/)\n\n- [Redis Documentation](https://redis.io/docs/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraj1729%2Fgcp-cloud-billing-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepraj1729%2Fgcp-cloud-billing-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepraj1729%2Fgcp-cloud-billing-api/lists"}