Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
bqemulatormanager is a wrapper of bigquery-emulator which provides us BigQuery mock working in local machine.
this package is wrapper of bigquery-emulator which provides us BigQuery mock working in local machine.
using this package, you can
following instruction, download bigquery-emulator
command.
install this package.
pip install bqemulatormanager
import bqemulatormanager as bqem
import pandas as pd
manager = bqem.Manager(project='test', schema_path='resources/schema_example.yaml')
with manager:
data = pd.DataFrame([
{'id': 1, 'name': 'sato'},
{'id': 2, 'name': 'yamada'}
])
manager.load(data, 'dataset1.table_a')
sql = 'SELECT id, name FROM `dataset1.table_a`'
df = manager.query(sql)
print(df)
unit test example is here.
When called Manager.load
, SchemaManager
search correspond table schema from schema_path
(default is bqem_master_schema.yaml
).
If schema definition cannot be found, SchemaManager
request it from BigQuery in production environment and update master schema file.
FAQs
bqemulatormanager is a wrapper of bigquery-emulator which provides us BigQuery mock working in local machine.
We found that bqemulatormanager demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.