assets
define_noteable_dagster_asset(name, notebook_id, key_prefix=None, ins=None, non_argument_deps=None, metadata=None, config_schema=None, required_resource_keys=None, resource_defs=None, description=None, partitions_def=None, op_tags=None, group_name=None)
#
Creates a Dagster asset for a Noteable notebook.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name for the asset |
required |
notebook_id |
str
|
The id of the Noteable notebook |
required |
key_prefix |
Optional[Union[str, Sequence[str]]]
|
If provided, the asset's key is the concatenation of the key_prefix and the asset's name, which defaults to the name of the decorated function. Each item in key_prefix must be a valid name in dagster (ie only contains letters, numbers, and _) and may not contain python reserved keywords. |
None
|
ins |
Optional[Mapping[str, AssetIn]]
|
A dictionary that maps input names to information about the input. |
None
|
non_argument_deps |
Optional[Union[Set[AssetKey], Set[str]]]
|
Set of asset keys that are upstream dependencies, but do not pass an input to the asset. |
None
|
config_schema |
Optional[ConfigSchema
|
The configuration schema for the asset's underlying op. If set, Dagster will check that config provided for the op matches this schema and fail if it does not. If not set, Dagster will accept any config provided for the op. |
None
|
metadata |
Optional[Dict[str, Any]]
|
A dict of metadata entries for the asset. |
None
|
required_resource_keys |
Optional[Set[str]]
|
Set of resource handles required by the notebook. |
None
|
description |
Optional[str]
|
Description of the asset to display in Dagit. |
None
|
partitions_def |
Optional[PartitionsDefinition]
|
Defines the set of partition keys that compose the asset. |
None
|
op_tags |
Optional[Dict[str, Any]]
|
A dictionary of tags for the op that computes the asset.
Frameworks may expect and require certain metadata to be attached to a op. Values that
are not strings will be json encoded and must meet the criteria that
|
None
|
group_name |
Optional[str]
|
A string name used to organize multiple assets into groups. If not provided, the name "default" is used. |
None
|
resource_defs |
Optional[Mapping[str, ResourceDefinition]]
|
(Experimental) A mapping of resource keys to resource definitions. These resources will be initialized during execution, and can be accessed from the context within the notebook. |
None
|
Source code in noteable_dagstermill/assets.py
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 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|