How to use the b2luigi.core.utils.encode_value function in b2luigi

To help you get started, we’ve selected a few b2luigi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nils-braun / b2luigi / b2luigi / core / tasks.py View on Github external
def _prepare_env(self):
        env = {
            "B2LUIGI_TASK": utils.encode_value(self.__class__),
            "B2LUIGI_EXECUTION": "1"
        }

        for key, parameter in self.get_params():
            value = getattr(self, key)

            env[f"{utils.PREFIX}{key}"] = utils.encode_value(value)
        return env
github nils-braun / b2luigi / b2luigi / core / tasks.py View on Github external
def _prepare_env(self):
        env = {
            "B2LUIGI_TASK": utils.encode_value(self.__class__),
            "B2LUIGI_EXECUTION": "1"
        }

        for key, parameter in self.get_params():
            value = getattr(self, key)

            env[f"{utils.PREFIX}{key}"] = utils.encode_value(value)
        return env