Pycarol

Latest version: v2.55.0

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 21

2.54.14

What's new:

- adding instructions to run single test case
- adding instructions to get BQ service account
- adding dependency of google-cloud-bigquery-storage for python3.6+
- adding testcases for BQ query without pandas. + docstrings

2.54.13

What's new:
- FIX: downgrading python version for readthedocs from 3.9 to 3.6

2.54.12

What's new:

- using black in __init__.py
- Adding message for bigquery when pandas is not installed
- fixing code smells __init__.py
- removing code smells __init__.py
- fixing import order and formatting logger
- adding bqstorage to readme
- adding bq to index
- adding test instructions to DEV.md
- Adding BQ Storage API. Refactoring.
- Adding unit tests for BQ and BQ Storage.

In case one needs a service account with access to BigQuery, the following code can be
used:

python

from pycarol import Carol
from pycarol.bigquery import TokenManager

tm = TokenManager(Carol())
service_account = tm.get_token().service_account


PyCarol provides access to BigQuery Storage API also. It allows for much faster reading
times, but with limited querying capabilities. For instance, only tables are readable,
so 'ingestion_stg_model_deep_audit' is ok, but 'stg_model_deep_audit' is not (it is a
view).

python

from pycarol import BQStorage, Carol

bq = BQStorage(Carol())
table_name = "ingestion_stg_model_deep_audit"
col_names = ["request_id", "version"]
df = bq.query(table_name, col_names, return_dataframe=True)ken().service_account

2.54.11

what's new:
- adding retry and raising error on no scrollid

This fix aims at raising an error when Carol query API "forgets" to return the scrollId.

2.54.10

2.54.9

What's Changed
Marking data model views and mappings as deprecated.


**Full Changelog**: https://github.com/totvslabs/pyCarol/compare/2.54.5...2.54.9

Page 2 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.