Skip to main content
Answer

The extractor utils requires a config file path, no way to pass the config object directly

  • June 13, 2025
  • 2 replies
  • 27 views

Markus Pettersen
MVP

The python extractor utils requires the config to be stored as a local file there is not way to pass it directly as a string/yaml object. This makes it quite cumbersome to use as not all our deployments have access to local file storage for config files.

Is there a way to add support for the config to be passed as an environment variable?

 

Reading config from env example:
 

 

Best answer by Thomas Sjolshagen

Hi ​@Markus Pettersen,

Cognite has no plans to add this functionality to the extractor utils package. 

BUT, since this is a public repository, feel free to provide a pull request for the team to evaluate.

I would suggest initiating a discussion with the team maintaining the package (try creating a github issue and I’ll make sure they take a look, please).

2 replies

Forum|alt.badge.img

Hi ​@Markus Pettersen,

Cognite has no plans to add this functionality to the extractor utils package. 

BUT, since this is a public repository, feel free to provide a pull request for the team to evaluate.

I would suggest initiating a discussion with the team maintaining the package (try creating a github issue and I’ll make sure they take a look, please).


Markus Pettersen
MVP

GitHub issue has already been created, I’ll follow this up there then and see if get somewhere:
https://github.com/cognitedata/python-extractor-utils/issues/448