Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lambdamusic/dimschema
CLI to retrieve SQL schema information about the Dimensions on Google BigQuery dataset.
https://github.com/lambdamusic/dimschema
bigquery dimensions python scholarly-metadata
Last synced: 1 day ago
JSON representation
CLI to retrieve SQL schema information about the Dimensions on Google BigQuery dataset.
- Host: GitHub
- URL: https://github.com/lambdamusic/dimschema
- Owner: lambdamusic
- License: mit
- Created: 2022-02-04T18:17:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T18:24:18.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T15:55:13.713Z (about 1 month ago)
- Topics: bigquery, dimensions, python, scholarly-metadata
- Language: Python
- Homepage: https://pypi.org/project/dimschema
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dimemsions GBQ Schema Utility
CLI to retrieve SQL schema information about the [Dimensions on Google BigQuery](https://console.cloud.google.com/bigquery?p=dimensions-ai&page=project) dataset.
**NOTE** This is the same documentation available from https://docs.dimensions.ai/bigquery/data-sources.html - only it's retrieving from the BigQuery database itself.
## Install
```
pip install dimschema
```## Requirements
* Python 3+
* Personal Google account credentials set up in your local machine. The [BigQueryLAB](https://bigquery-lab.dimensions.ai/tutorials/01-connection/#option-2-using-a-local-jupyter-and-your-personal-credentials) has a tutorial showing how to do that.## Examples
* `dimschema publications .` : show all fields from the Publications table
* `dimschema ids` : show fields containing the string 'ids'
* `dimschema datasets ids` : show fields containing the string 'ids', only in the Datasets table
## Development
```
$ mkvirtualenv dimschema
$ pip install --editable .
```See https://stackoverflow.com/questions/30306099/pip-install-editable-vs-python-setup-py-develop
## Status
Working prototype / unsupported