{"id":15687817,"url":"https://github.com/orisano/bqspec","last_synced_at":"2025-07-08T17:37:33.896Z","repository":{"id":50214976,"uuid":"112086121","full_name":"orisano/bqspec","owner":"orisano","description":"SQL testing tool for Google BigQuery.","archived":false,"fork":false,"pushed_at":"2023-08-02T02:49:21.000Z","size":246,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T17:29:21.523Z","etag":null,"topics":["bigquery","cli","python","test","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orisano.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2017-11-26T13:47:14.000Z","updated_at":"2024-08-24T23:44:38.000Z","dependencies_parsed_at":"2024-10-23T20:42:04.259Z","dependency_job_id":"410b9147-4e2e-4f88-953a-e8edf1efd7dd","html_url":"https://github.com/orisano/bqspec","commit_stats":{"total_commits":75,"total_committers":4,"mean_commits":18.75,"dds":0.5333333333333333,"last_synced_commit":"55d0b7f0e0bda18e52e45a1f5d0edb1d3bcbccb0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fbqspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fbqspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fbqspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fbqspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/bqspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252926171,"owners_count":21826256,"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","cli","python","test","yaml"],"created_at":"2024-10-03T17:51:12.682Z","updated_at":"2025-05-07T17:29:23.566Z","avatar_url":"https://github.com/orisano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"BQSpec\n===================================\n.. image:: https://badge.fury.io/py/bqspec.svg\n    :target: https://badge.fury.io/py/bqspec\n.. image:: https://img.shields.io/pypi/pyversions/bqspec.svg\n    :target: https://pypi.org/project/bqspec/\n\nSQL testing tool for Google BigQuery.\nthis library is pre-alpha. not recommended to production use.\n\nGetting Started\n----------------\n.. code:: bash\n\n    pip install bqspec\n\n.. code:: bash\n\n    gcloud auth application-default login\n\nHow to Use\n-----------\nspec.yaml\n\n.. code:: yaml\n\n    # test target SQL filepath\n    query_path: ./sample.sql\n    # any BigQuery query parameters (optional). more details: https://cloud.google.com/bigquery/docs/parameterized-queries\n    params:\n        - type: DATE\n          name: date\n          value: 2017-11-30\n    # known columns (optional).\n    columns:\n        - id\n        - a\n        - b\n        - c\n        - total\n    # conditions which all rows must met (optional).\n    invariants:\n        - total \u003e= 0  # write python expression\n        - a + b == c\n    # any test cases\n    cases:\n        - where:\n          - id == 1\n          expected:\n          - total == 15\n          - a == 2\n          - b == 3\n          - c == 5\n\n.. code:: bash\n\n    bqspec -f spec.yaml\n\nor\n\n.. code:: bash\n\n    bqspec -d .\n\n\nAuthor\n-----------\nNao Yonashiro (@orisano)\n\nLicense\n-----------\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fbqspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fbqspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fbqspec/lists"}