singer-config-file
Description
Write a config file for a Singer tap.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
dict | -- | The config dictioniary. Required |
|
string | -- | The path to the config file. Required |
Code
doc: short_help: Write a config file for a Singer tap. args: path: doc: short_help: The path to the config file. type: string required: true config: doc: short_help: The config dictioniary. type: dict empty: false required: true frecklets: - file-with-content: path: '{{:: path ::}}' mode: '0700' content: | {{:: config | tojson ::}}
frecklecute --community singer-config-file --help Usage: frecklecute singer-config-file [OPTIONS] Write a config file for a Singer tap. Options: --config CONFIG The config dictioniary. [required] --path PATH The path to the config file. [required] --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.singer_config_file.SingerConfigFile # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class SingerConfigFile(AutoPycklet): """Write a config file for a Singer tap. Args: config: The config dictioniary. path: The path to the config file. """ FRECKLET_ID = "singer-config-file" config: Dict = None path: str = None def __post_init__(self): super(SingerConfigFile, self).__init__(var_names=["config", "path"]) frecklet_class = SingerConfigFile
# -*- coding: utf-8 -*- # # module path: pycklets.singer_config_file.SingerConfigFile # from pyckles import AutoPycklet class SingerConfigFile(AutoPycklet): """Write a config file for a Singer tap. Args: config: The config dictioniary. path: The path to the config file. """ FRECKLET_ID = "singer-config-file" def __init__(self, config=None, path=None): super(SingerConfigFile, self).__init__(var_names=["config", "path"]) self._config = config self._path = path @property def config(self): return self._config @config.setter def config(self, config): self._config = config @property def path(self): return self._path @path.setter def path(self, path): self._path = path frecklet_class = SingerConfigFile