Open francesco086 opened 1 year ago
As a dac package producer I would like to have the possibility to insert parameters in the load.py and schema.py files that will be filled when running dac pack so that I can re-use the same templates
load.py
schema.py
dac pack
import dask.dataframe as dd def load() -> dd.DataFrame: return dd.read_parquet(path="az://STORAGE_CONTAINER_NAME/DATA_FOLDER/*.parquet", storage_options={"account_name": "STORAGE_ACCOUNT_NAME", "anon": False})
Here, STORAGE_ACCOUNT_NAME, STORAGE_CONTAINER_NAME, and DATA_FOLDER could be parametrized to allow re-usability
STORAGE_ACCOUNT_NAME
STORAGE_CONTAINER_NAME
DATA_FOLDER
As a dac package producer I would like to have the possibility to insert parameters in the
load.py
andschema.py
files that will be filled when runningdac pack
so that I can re-use the same templatesExample
Here,
STORAGE_ACCOUNT_NAME
,STORAGE_CONTAINER_NAME
, andDATA_FOLDER
could be parametrized to allow re-usability