API Reference
This page provides a detailed API reference for NovaPipe modules, classes, and functions.
Powered by mkdocstrings, each section below will automatically list available attributes and docstrings.
Core Modules
novapipe.tasks
Discover and register task functions for pipelines.
aggregate_results(params)
Stub aggregate_results: just return whatever was passed in.
Source code in novapipe/tasks.py
268 269 270 271 272 273 274 | |
async_wait_and_print(params)
async
An example async task that waits N seconds, then prints a message. Pipeline usage:
tasks
- name: delayed task: async_wait_and_print params: message: "This ran after waiting" seconds: 2
Source code in novapipe/tasks.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
call_api(params)
Stub call_api: pretend to fetch from url by returning a marker string.
Source code in novapipe/tasks.py
259 260 261 262 263 264 265 | |
count_file_lines(params)
Count the number of lines in the file at path. Return the integer count.
Source code in novapipe/tasks.py
172 173 174 175 176 177 178 179 180 181 | |
create_temp_dir(params)
Create a unique temporary directory under base. Return its path.
Source code in novapipe/tasks.py
144 145 146 147 148 149 150 151 152 153 | |
echo(params)
Print and return params['message'].
Source code in novapipe/tasks.py
201 202 203 204 205 206 207 208 | |
extract_data(params)
Stub extract_data: returns the source param so we can see it ran.
Source code in novapipe/tasks.py
234 235 236 237 238 239 | |
load_data(params)
Stub load_data: prints and returns a load message.
Source code in novapipe/tasks.py
249 250 251 252 253 254 255 256 | |
load_plugins()
Discover and load external plugins via entry point group 'novapipe.plugins'. Plugins should define entry_points in their own pyproject.
Source code in novapipe/tasks.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
maybe_fail(params)
A demo task that randomly raises to simulate flakiness.
Source code in novapipe/tasks.py
133 134 135 136 137 138 139 140 141 | |
print_message(params)
A simple built-in task that prints the "message" field from params. Example usage in pipeline.yaml:
tasks
- name: say_hello task: print_message params: message: "Hello, NovaPipe!"
Source code in novapipe/tasks.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
return_value(params)
Return whatever is in params['value'].
Source code in novapipe/tasks.py
184 185 186 187 188 189 | |
set_plugin_pins(pins)
pins: mapping of distribution name -> version to pin for that plugin. Example: {'novapipe-foo': '0.2.1'}
Source code in novapipe/tasks.py
20 21 22 23 24 25 26 | |
task(func)
Decorator to register a function (sync or async) as a NovaPipe task. Usage: @task() def my_task(param1, param2): ...
Source code in novapipe/tasks.py
29 30 31 32 33 34 35 36 37 38 | |
transform_data(params)
Stub transform_data: tags the data as transformed.
Source code in novapipe/tasks.py
241 242 243 244 245 246 247 | |
upload_file_s3(params)
Uploads a local file at path to S3 bucket/key, returns the S3 URI.
Source code in novapipe/tasks.py
221 222 223 224 225 226 227 228 229 230 231 | |
wrap_text(params)
Return 'WRAPPED: ' where input = params['input'].
Source code in novapipe/tasks.py
192 193 194 195 196 197 198 | |
write_text_file(params)
Create a text file at path with content content. Return the file path.
Source code in novapipe/tasks.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
novapipe.cli
The command-line interface definitions, including commands, options, and subcommands.
cli(verbose)
NovaPipe — lightweight, plugin-driven ETL orchestration.
Source code in novapipe/cli.py
32 33 34 35 36 37 38 39 40 41 42 | |
dag(pipeline_file, export_dot)
Show task-dependency graph for a pipeline. By default, prints an ASCII view. Use --dot to emit Graphviz DOT.
Source code in novapipe/cli.py
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | |
describe(task_name)
Show the full signature and docstring of a given task.
Source code in novapipe/cli.py
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 321 | |
init(name)
Create a started pipeline YAML file.
Source code in novapipe/cli.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
inspect()
List all registered tasks.
Source code in novapipe/cli.py
257 258 259 260 261 262 263 264 | |
playground(vars, template)
Interactive Jinja2 playground
If TEMPLATE is given, renders it once and exits. Otherwise enters a REPL: type templates, ENTER to render, or 'exit' or quit.
Source code in novapipe/cli.py
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 | |
plugin()
Plugin management commands.
Source code in novapipe/cli.py
359 360 361 362 363 364 | |
plugin_ci_template(output_path)
Scaffold a GitHub Actions workflow to build, test, and publish this plugin.
Source code in novapipe/cli.py
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | |
plugin_list(dists, tasks_filter, sources)
List all installed NovaPipe plugins (distribution, version, module, tasks).
Source code in novapipe/cli.py
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 | |
plugin_scaffold(plugin_name)
Scaffold a new NovaPipe plugin project.
Source code in novapipe/cli.py
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | |
repo()
Manage CI/CD workflows for the NovaPipe repository itself.
Source code in novapipe/cli.py
586 587 588 589 590 591 | |
repo_ci_template(output_path)
Scaffold a GitHub Actions workflow for canary (TestPyPI) and stable (PyPI) releases.
Source code in novapipe/cli.py
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 | |
report(summary_json)
Read a summary JSON (as written by --summary-json) and print a table: name status attempts duration(s) error
Source code in novapipe/cli.py
203 204 205 206 207 208 209 210 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 | |
run(pipeline_file, vars, summary_path, metrics_port, metrics_path, plugin_versions, ignore_failures)
Run a pipeline YAML file.
Source code in novapipe/cli.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 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 | |
tutorial(task_name)
Emit a "Try-me" pipeline YAML snippet for TASK_NAME.
Source code in novapipe/cli.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | |
novapipe.models
Pydantic models defining the pipeline schema: TaskModel and Pipeline.
novapipe.runner
The execution engine for pipelines: PipelineRunner, RateLimiter, and helper functions.
PipelineRunSummary
Collects a dict of TaskSummary, keyed by task name.
Source code in novapipe/runner.py
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 | |
PipelineRunner
Executes a validated Pipeline of Steps, supporting async tasks.
Source code in novapipe/runner.py
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 209 210 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 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | |
print_dag()
ASCII view of each task name and its dependencies.
Source code in novapipe/runner.py
698 699 700 701 702 703 704 | |
run()
- Load all plugins → ensure task_registry is populated
- Compute dependency “layers”
- For each layer, run all tasks concurrently (with retry logic baked in)
Source code in novapipe/runner.py
674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 | |
to_dot()
Generate a Graphviz DOT representation of the DAG.
Each task is a node labeled "<name>
Source code in novapipe/runner.py
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | |
RateLimiter
Simple sliding-window rate limiter: up to rate calls per per seconds.
Source code in novapipe/runner.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
TaskMetrics
Stores summary info for one task
- attempts: total attempts made (1 + retries)
- status: "success", "failed_ignored", or "failed_abort"
- duration_secs: wall‐clock time from first attempt start to final outcome
- error: error message (if any; null on success)
Source code in novapipe/runner.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 | |
limit_and_call(fn, params, cpu_time=None, memory=None)
Apply RLIMIT_CPU and RLIMIT_AS (if given), then call fn(params). If fn(params) returns a coroutine, run it via asyncio.run(). Return the final result.
Source code in novapipe/runner.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
PipelineRunSummary (in novapipe.runner)
Collects a dict of TaskSummary, keyed by task name.
Source code in novapipe/runner.py
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 | |
Helper Utilities
- limit_and_call: Apply resource limits before executing tasks.
- set_plugin_pins: Pin plugin versions for conflict resolution.
Refer to the sections above for these utilities where applicable.
Automatically generated.sections will be populated by mkdocstrings when building the docs.