create_pipeline
Functions:
| Name | Description |
|---|---|
ingest |
Ingest cookiecutter wrapper that adds validation and better dynamic defaults. |
valid_classname |
|
valid_module |
|
validated_prompt |
|
vap |
Pipeline cookiecutter wrapper that adds validation and better dynamic defaults. |
Attributes:
| Name | Type | Description |
|---|---|---|
app |
|
Attributes#
app
module-attribute
#
Functions:#
ingest #
ingest(
ingest_title: str = typer.Option(
...,
help="The title of the ingest excluding any location details. This will be used to generate a default pipeline class name and the folder in which it lives. E.g., for a title of 'Halo Lidar', 'HaloLidar' would be the default name of the pipeline and 'pipelines/halo_lidar' would be the folder created to contain its code. Note that a later prompt will appear to confirm or modify these defaults.",
prompt="What title do you want to give this ingest?\n",
),
ingest_location: str = typer.Option(
...,
help="A label for the location where the data are collected.",
prompt="What label should be used for the location of the ingest? (E.g., PNNL, San Francisco, etc.)\n",
),
ingest_description: str = typer.Option(
...,
help="A brief description of the ingest that will be used in the ingest's README file and in the metadata produced by the pipeline.",
prompt="Briefly describe the ingest\n",
),
data_standards: str = typer.Option(
...,
help="Data standardization conventions to hold the dataset to. Choose from 'basic'(standard CF conventions), 'ACDD' (Attribute Conventions for Data Discovery), or 'IOOS' (Integrated Ocean Observing System) standards.",
prompt="Data standards to use with the ingest dataset ['basic','ACDD','IOOS']\n",
),
use_custom_data_reader: bool = typer.Option(
False,
help="Flag to generate boilerplate code for handling inputs stored in a data format not supported by tsdat out-of-the-box. To see a complete list of built-in data readers visit https://tsdat.readthedocs.io/en/latest/autoapi/tsdat/io/readers",
prompt="Do you want to use a custom DataReader?\n",
),
use_custom_data_converter: bool = typer.Option(
False,
help="Flag to generate boilerplate code to apply custom convertions or other preprocessing actions to the raw data before it enters the data pipeline. Use this if the built-in data converters are not sufficient. To see a complete list of built-in DataConverters visit https://tsdat.readthedocs.io/en/latest/autoapi/tsdat/io/converters",
prompt="Do you want to use a custom DataConverter?\n",
),
use_custom_qc: bool = typer.Option(
False,
help="Flag to generate boilerplate code for applying custom quality checks or corrections to the data. Use this if the built-in QualityCheckers or QualityHandlers are not sufficient. To see a complete list of list of built-in QualityCheckers and QualityHandlers visit https://tsdat.readthedocs.io/en/latest/autoapi/tsdat/qc",
prompt="Do you want to use a custom QualityChecker or QualityHandler?\n",
),
)
Ingest cookiecutter wrapper that adds validation and better dynamic defaults.
Source code in tsdat/cli/create_pipeline.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
valid_classname #
Source code in tsdat/cli/create_pipeline.py
valid_module #
Source code in tsdat/cli/create_pipeline.py
validated_prompt #
vap #
vap(
title: str = typer.Option(
...,
help="The title of the pipeline excluding any location details. This will be used to generate a default pipeline class name and the folder in which it lives. E.g., for a title of 'Halo Lidar', 'HaloLidar' would be the default name of the pipeline and 'pipelines/vap_halo_lidar' would be the folder created to contain its code. Note that a later prompt will appear to confirm or modify these defaults.",
prompt="What title do you want to give this pipeline?\n",
),
location: str = typer.Option(
...,
help="A label for the location where the pipeline should run.",
prompt="What label should be used for the location of the pipeline? (E.g., PNNL, San Francisco, etc.)\n",
),
description: str = typer.Option(
...,
help="A brief description of the pipeline that will be used in the pipeline's README file and in the metadata produced by the pipeline.",
prompt="Briefly describe the pipeline\n",
),
use_custom_data_converter: bool = typer.Option(
False,
help="Flag to generate boilerplate code to apply custom conversions or other preprocessing actions to the data before it enters the data pipeline. Use this if the built-in data converters are not sufficient. To see a complete list of built-in DataConverters visit https://tsdat.readthedocs.io/en/latest/autoapi/tsdat/io/converters",
prompt="Do you want to use a custom DataConverter?\n",
),
use_custom_qc: bool = typer.Option(
False,
help="Flag to generate boilerplate code for applying custom quality checks or corrections to the data. Use this if the built-in QualityCheckers or QualityHandlers are not sufficient. To see a complete list of list of built-in QualityCheckers and QualityHandlers visit https://tsdat.readthedocs.io/en/latest/autoapi/tsdat/qc",
prompt="Do you want to use a custom QualityChecker or QualityHandler?\n",
),
)
Pipeline cookiecutter wrapper that adds validation and better dynamic defaults.
Source code in tsdat/cli/create_pipeline.py
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | |