Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery Credentials #8

Open
hooman96 opened this issue Jan 12, 2023 · 0 comments
Open

BigQuery Credentials #8

hooman96 opened this issue Jan 12, 2023 · 0 comments

Comments

@hooman96
Copy link

Hi there.

Is there a way to get access to GCP BigQuery?

>>> lib310.db
<module 'lib310.database' from '/usr/local/lib/python3.10/dist-packages/lib310/database/__init__.py'>
>>> seqs = lib310.db.fetch(
...     name="SPIKE_SARS2",
...     feature='sequence',
...     limit=500
... )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/dist-packages/lib310/database/__init__.py", line 18, in fetch
    db_connection = DatabaseConnection()
  File "/usr/local/lib/python3.10/dist-packages/lib310/database/_connection.py", line 13, in __init__
    raise Exception(
Exception: You must set BigQuery credentials first! try using `lib310.db.set_gcloud_key_path(path) method.

Cheers,
Hooman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant