A simple Python Flask API to consult Google Cloud Bigquery
- Python 3.11.x
- Clone this repo from Github with
git clone git@github.com:dfop02/bigquery-api.git
- Install the correct python version in
.python-version
using any python manager or directly download from official website. - Execute
pip install -r requirements.txt
- Before run the code you must have an service account, you can read how generate it here. After generate, put the credentials.json on project's root, if you change the filename, make sure you changed in .env too.
- Now just run the app using
python app.py
If you want use tests or lint on this project, first you must need install the test dependences using pip install -r requirements_test.txt
After install the test dependences, you can run by using:
- Tests =>
pytest
. - Lint =>
pylint app.py
Suggestion of links, fonts to read about that you help you to learn more about how this code works and how the services we're using works.