PICLE API reference
This page describes the configuration hooks PICLE reads from your Pydantic models and fields.
It focuses on the parts you use when defining a shell (config, field metadata, execution, and output).
For full API docs of App and built-in models, keep reading to the mkdocstrings reference at the bottom.
PicleConfig Model Level Configuration
Any Pydantic model may define an inner PicleConfig class. PICLE reads attributes from it (when present).
Only a few are required; most are optional quality-of-life switches.
PicleConfig is intentionally “open-ended”: the core App reads a known set of attributes (documented below),
and specific built-in models may honor additional PicleConfig keys (for example, ConfigModel).
| Name | Meaning |
|---|---|
ruler |
Separator line char used by cmd help formatting (empty disables) |
intro |
Banner printed on shell start |
prompt |
Prompt string |
use_rich |
If True and Rich is installed, print via Rich console |
newline |
Output newline, default \r\n |
completekey |
Readline completion key name, default tab |
pipe |
Enables | and selects the pipe model ("self", import string, or model class) |
processors |
List of callables applied to the first command result |
outputter |
Callable used to render output when not overridden |
outputter_kwargs |
Extra kwargs passed into outputter |
history_length |
Length of commands history to store for history output, default 100 |
history_file |
Filename to persistently store commands history, default ./picle_history.txt |
subshell |
If True, navigating to this model with no args enters a subshell (prompt changes, model is pushed onto a stack) |
methods_override |
Dict of {app_method_name: model_method_name} used to override App methods at runtime |
json_schema_extra Field Level Configuration
PICLE reads extra behavior from fields definitions - Field(..., json_schema_extra={...}).
Note: command tokens come from the field name (or its alias / serialization_alias), not from the Pydantic class name.
| Key | Meaning |
|---|---|
function |
Name of a model @staticmethod to call when run() is absent |
presence |
Constant value used when field is referenced without a value |
processors |
List of callables applied to the command result |
outputter |
Callable that formats output for this field (overrides model outputter) |
outputter_kwargs |
Extra kwargs passed into outputter |
multiline |
If True, the literal value input triggers multi-line collection |
root_model |
If True, pass the app root model as root_model=... |
picle_app |
If True, pass the App instance as picle_app=... |
use_parent_run |
If True (default), and the leaf model has no run(), PICLE searches parent models for a run() to execute. If False, the command errors unless the leaf model defines run() or function. |
pkey |
Primary key name to use for dynamic dictionary models |
pkey_description |
Description of dynamic dictionary model primary key |
Handling of function Argument vs run() Method
Execution is resolved like this:
- If the last referenced field sets
json_schema_extra={"function": "method_name"}, PICLE callsgetattr(model, method_name)(**kwargs). - If the current model has
run, PICLE callsmodel.run(**kwargs). - if
json_schema_extra={"use_parent_run": True}set on the field, backtracks parent models and executes first foundrun()method.
This lets small models define many “command -> staticmethod” fields, while larger models can centralize behavior in run().
Callable Signatures
PICLE builds callable **kwargs from collected field values and calls either run() or the field-level function. It can also inject extra context if callable declares a matching argument name:
root_model- if callable signature includesroot_modeladdsself.rootmodel to callable arguments e.g.root_model=self.rootpicle_app- if callable signature includespicle_appaddsselfto callable arguments e.g.picle_app=selfshell_command- if callable signature includesshell_commandadds parsed command context for the current segment: a list of model dictionaries produced byparse_commandmethod. This is useful when your function needs to inspect the command path, model defaults, or other parsing details.
PICLE App
picle.App(root: object, stdin=None, stdout=None)
Bases: Cmd
PICLE App class to construct shell.
Parameters:
-
root(object) –Root/Top Pydantic model.
Source code in picle\picle.py
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 | |
picle.App.build_command_data(models: list) -> dict
Build flat dictionary of command data from parsed models list.
Parameters:
-
models(list) –List of parsed model dictionaries.
Returns:
-
dict(dict) –Flat dictionary of command data.
Source code in picle\picle.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |
picle.App.completedefault(text: str, line: str, begidx: int, endidx: int) -> list[str]
Return completions for every command parameter after the first one.
Called by cmd on a tab-key hit for arguments beyond the initial command keyword.
Parameters:
-
text(str) –The current text being completed.
-
line(str) –The current input line.
-
begidx(int) –The beginning index of the completion.
-
endidx(int) –The ending index of the completion.
Returns:
-
list[str]–list[str]: List of completion suggestions.
Source code in picle\picle.py
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 | |
picle.App.completenames(text: str, line: str, begidx: int, endidx: int) -> list[str]
Return completions for the very first command parameter.
Called by cmd on a tab-key hit for the initial keyword.
Parameters:
-
text(str) –The current text being completed.
-
line(str) –The current input line.
-
begidx(int) –The beginning index of the completion.
-
endidx(int) –The ending index of the completion.
Returns:
-
list[str]–list[str]: List of completion suggestions.
Source code in picle\picle.py
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 | |
picle.App.default(line: str) -> Optional[bool]
Process a command line when no matching do_* method is found.
Parameters:
-
line(str) –Command line input.
Returns:
-
Optional[bool]–Optional[bool]: True if the shell should exit, otherwise None.
Source code in picle\picle.py
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 | |
picle.App.defaults_pop(model: Any) -> None
Remove the given model's field names from shell_defaults.
Parameters:
-
model(Any) –Pydantic model class or instance.
Source code in picle\picle.py
527 528 529 530 531 532 533 534 535 | |
picle.App.defaults_set(model: Any) -> None
Replace shell_defaults with the given model's defaults.
Clears the existing defaults and populates them from model.
Parameters:
-
model(Any) –Pydantic model class or instance.
Source code in picle\picle.py
537 538 539 540 541 542 543 544 545 546 547 | |
picle.App.defaults_update(model: Any) -> None
Merge the given model's default field values into shell_defaults.
Parameters:
-
model(Any) –Pydantic model class or instance.
Source code in picle\picle.py
518 519 520 521 522 523 524 525 | |
picle.App.do_cls(arg: str) -> None
Clear the terminal screen.
Source code in picle\picle.py
1153 1154 1155 1156 1157 1158 1159 1160 1161 | |
picle.App.do_end(arg: str) -> Optional[bool]
Exit the application entirely.
Source code in picle\picle.py
1103 1104 1105 1106 1107 1108 | |
picle.App.do_exit(arg: str) -> Optional[bool]
Exit current shell or terminate if at the top level.
Source code in picle\picle.py
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 | |
picle.App.do_help(arg: str) -> None
Print help message for the given command or model.
Source code in picle\picle.py
1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 | |
picle.App.do_history(arg: str) -> None
Print command history.
Source code in picle\picle.py
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 | |
picle.App.do_pwd(arg: str) -> None
Print the current shell path from root.
Source code in picle\picle.py
1110 1111 1112 1113 1114 1115 1116 1117 1118 | |
picle.App.do_top(arg: str) -> None
Exit to top shell, resetting the shell stack.
Source code in picle\picle.py
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 | |
picle.App.emptyline() -> None
Override empty line method to not run last command.
Source code in picle\picle.py
189 190 191 192 193 | |
picle.App.extract_model_defaults(model: Any) -> dict
Extract non-None default values from a Pydantic model's fields.
Parameters:
-
model(Any) –Pydantic model class or instance to extract defaults from.
Returns:
-
dict(dict) –Dictionary mapping field names to their default values.
Source code in picle\picle.py
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 | |
picle.App.model_mount(model: ModelMetaclass, path: Union[str, list[str]], description: str = None, default: Any = None, **kwargs: dict) -> None
Mount a Pydantic model at the provided path in relation to the root model.
Parameters:
-
model(ModelMetaclass) –Pydantic model to mount.
-
path(Union[str, list[str]]) –List of path segments to mount the model.
-
description(str, default:None) –Description of the model.
-
default(Any, default:None) –Default value for the model.
-
**kwargs(dict, default:{}) –Additional keyword arguments for the FieldInfo.
Source code in picle\picle.py
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 | |
picle.App.model_remove(path: list[str]) -> None
Remove a Pydantic model at the provided path in relation to the root model.
Parameters:
-
path(list[str]) –List of path segments to remove the model.
Source code in picle\picle.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
picle.App.parse_command(command: str, collect_multiline: bool = False, is_help: bool = False) -> list
Parse command string and construct list of model references and field values.
Parameters:
-
command(str) –Command string to parse through.
-
collect_multiline(bool, default:False) –Enables multiple input collection for fields.
-
is_help(bool, default:False) –Indicates that parsing help command or tab completion command; if set to True disables 'presence' argument handling for last field.
Returns:
-
list(list) –List of lists of dictionaries with collected models details, each dictionary containing 'model', 'fields', and 'parameter' keys.
Source code in picle\picle.py
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 733 734 735 736 737 738 739 740 741 742 | |
picle.App.postloop() -> None
Save readline history to file on shell exit.
Source code in picle\picle.py
179 180 181 182 183 184 185 186 187 | |
picle.App.print_model_help(models: list, verbose: bool = False, match: Optional[str] = None, print_help: bool = True) -> Optional[tuple[list[str], int]]
Form and print help message for model fields.
Parameters:
-
models(list) –List of model dictionaries.
-
verbose(bool, default:False) –If True, print verbose help.
-
match(str, default:None) –Only collect help for fields that start with this string.
-
print_help(bool, default:True) –If True, prints help; otherwise returns tuple of help lines list and width of longest line.
Returns:
-
Optional[tuple[list[str], int]]–Optional[tuple[list[str], int]]: Help lines and width if print_help is False.
Source code in picle\picle.py
744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 | |
picle.App.process_help_command(line: str) -> None
Process inline help triggered by '?' or '??' at the end of a command line.
Parameters:
-
line(str) –Input command line string ending with '?' or '??'.
Source code in picle\picle.py
1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 | |
picle.App.write(output: str) -> None
Write output to stdout.
Parameters:
-
output(str) –Output to write to stdout.
Source code in picle\picle.py
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
picle.App.write_error(output: str) -> None
Write error output to stdout in red color.
Parameters:
-
output(str) –Error message to write to stdout.
Source code in picle\picle.py
212 213 214 215 216 217 218 219 220 221 222 | |
PICLE Build In Models
picle.models.Filters
Bases: BaseModel
picle.models.Filters.filter_exclude(data: Any, exclude: Any = None) -> str
staticmethod
Filter data line by line using provided pattern. Returns only lines that do not contain the requested exclude pattern.
Parameters:
-
data(Any) –Data to filter.
-
exclude(Any, default:None) –Pattern to filter data.
Returns:
-
str(str) –Filtered lines joined by newline.
Source code in picle\models.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | |
picle.models.Filters.filter_include(data: Any, include: Any = None) -> str
staticmethod
Filter data line by line using provided pattern. Returns only lines that contain the requested include pattern.
Parameters:
-
data(Any) –Data to filter.
-
include(Any, default:None) –Pattern to filter data.
Returns:
-
str(str) –Filtered lines joined by newline.
Source code in picle\models.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
picle.models.Filters.filter_last(data: Any, last: int = None) -> str
staticmethod
Returns only the last N lines.
Parameters:
-
data(Any) –Data to filter.
-
last(int, default:None) –Number of lines to return from the end.
Returns:
-
str(str) –Last N lines joined by newline.
Source code in picle\models.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
picle.models.Outputters
Bases: BaseModel
picle.models.Outputters.outputter_json(data: Union[dict, list, bytes], indent: int = 4, sort_keys: bool = True, ensure_ascii: bool = True, separators: tuple = None) -> Any
staticmethod
Pretty print JSON string.
Parameters:
-
data(dict, list, or bytes) –Data to print.
-
indent(int, default:4) –Indentation for JSON output.
-
sort_keys(bool, default:True) –Sort dictionary keys in output.
-
ensure_ascii(bool, default:True) –Escape non-ASCII characters in output.
-
separators(tuple, default:None) –Item and key separators, e.g. (',', ': ').
Returns:
-
Any(Any) –JSON-formatted string or error message.
Source code in picle\models.py
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 | |
picle.models.Outputters.outputter_kv(data: dict, parent_key='', separator='.', is_top=True) -> str
staticmethod
Turn a nested structure (combination of lists/dictionaries) into a flattened dictionary.
This function is useful to explore deeply nested structures.
Source code in picle\models.py
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 | |
picle.models.Outputters.outputter_nested(data: Union[dict, list], initial_indent: int = 0, with_tables: bool = False, tabulate_kwargs: dict = None) -> str
staticmethod
Recursively formats and prints nested data structures (dictionaries and lists) in a human-readable format.
Parameters:
-
data(dict or list) –Nested data structure to be formatted and printed.
-
initial_indent(int, default:0) –Initial indentation level.
-
with_tables(bool, default:False) –If True, will format flat lists as Tabulate tables.
-
tabulate_kwargs(dict, default:None) –Arguments for tabulate table outputter.
Returns:
-
str(str) –Formatted nested string.
Source code in picle\models.py
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 | |
picle.models.Outputters.outputter_pprint(data: Any, indent: int = 4, width: int = 80, depth: int = None, compact: bool = False, sort_dicts: bool = True) -> str
staticmethod
Pretty-print results using Python's pprint module.
Parameters:
-
data(Any) –Any data to pretty-print.
-
indent(int, default:4) –Indentation added for each nesting level.
-
width(int, default:80) –Maximum number of characters per line.
-
depth(int, default:None) –Maximum depth of nested structures to display.
-
compact(bool, default:False) –Fit as many items as possible on each line.
-
sort_dicts(bool, default:True) –Sort dictionary keys before display.
Returns:
-
str(str) –Nicely formatted string representation.
Source code in picle\models.py
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 | |
picle.models.Outputters.outputter_rich_markdown(data: Any) -> Any
staticmethod
Print markdown output using Rich library.
Parameters:
-
data(Any) –Any data to print.
Returns:
-
Any(Any) –Rich Markdown object or string.
Source code in picle\models.py
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 | |
picle.models.Outputters.outputter_rich_table(data: list[dict], headers: list = None, title: str = None, sortby: str = None) -> Any
staticmethod
Format a list of dictionaries as a Rich table.
Parameters:
-
data(list[dict]) –List of dictionaries to display.
-
headers(list, default:None) –Column headers; defaults to the keys of the first row.
-
title(str, default:None) –Table title.
-
sortby(str, default:None) –Key name to sort rows by.
Returns:
-
Any(Any) –A Rich Table object, or the original data if Rich is unavailable.
Source code in picle\models.py
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 | |
picle.models.Outputters.outputter_save(data: Any, save: str) -> Any
staticmethod
Output data into a file.
Parameters:
-
data(Any) –Any data to print.
-
save(str) –File path to save data.
Returns:
-
Any(Any) –The data that was saved.
Source code in picle\models.py
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 | |
picle.models.Outputters.outputter_tabulate_table(data: list, headers_exclude: list = None, sortby: str = None, reverse: bool = False, tablefmt: str = 'grid', headers: list = None, showindex: bool = True, maxcolwidths: int = None) -> Any
staticmethod
Format and output data as a text table using the tabulate library.
Parameters:
-
data(list) –A list of dictionaries or list of lists to be formatted into a table. If it is a list of lists, the function merges nested lists.
-
headers_exclude(list, default:None) –A list or comma-separated string of headers to exclude from the table.
-
sortby(str, default:None) –The key name to sort the table by. If None, no sorting is applied.
-
reverse(bool, default:False) –If True, reverses the sort order. Defaults to False.
-
tablefmt(str, default:'grid') –Table format style.
-
headers(list or str, default:None) –Specifies the table headers. Can be a list, a comma-separated string, or 'keys' to use dictionary keys as headers.
-
showindex(bool, default:True) –If True, includes an index column in the table.
-
maxcolwidths(int, default:None) –Maximum width of the column before wrapping text.
Returns:
-
Any(Any) –Tabulated table string or error message.
Source code in picle\models.py
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 | |
picle.models.Outputters.outputter_yaml(data: Union[dict, list, bytes], absolute_indent: int = 0, indent: int = 2, sort_keys: bool = True, allow_unicode: bool = True, width: int = None, default_flow_style: bool = False) -> Any
staticmethod
Format structured data as a YAML string.
Parameters:
-
data(dict, list, or bytes) –Data to print.
-
absolute_indent(int, default:0) –Indentation to prepend for entire output.
-
indent(int, default:2) –Indentation for YAML output.
-
sort_keys(bool, default:True) –Sort dictionary keys in output.
-
allow_unicode(bool, default:True) –Allow Unicode characters instead of escaping them.
-
width(int, default:None) –Maximum line width before wrapping.
-
default_flow_style(bool, default:False) –Use flow style for collections.
Returns:
-
Any(Any) –YAML-formatted string or error message.
Source code in picle\models.py
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 | |
picle.models.PipeFunctionsModel
picle.models.MAN
Bases: BaseModel
Manual and documentation related functions
picle.models.MAN.print_model_json_schema(root_model: object, **kwargs: dict) -> str
staticmethod
Print model JSON schema for shell model specified by dot separated path (e.g. model.shell.command).
Parameters:
-
root_model(object) –PICLE App root model to print JSON schema for.
-
**kwargs(dict, default:{}) –Additional keyword arguments (expects 'json_schema' for path).
Returns:
-
str(str) –JSON schema as a formatted string.
Source code in picle\models.py
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 | |
picle.models.MAN.print_model_tree(root_model: object, **kwargs: dict) -> None
staticmethod
Print model tree for shell model specified by dot separated path (e.g. model.shell.command).
Parameters:
-
root_model(object) –PICLE App root model to print tree for.
-
**kwargs(dict, default:{}) –Additional keyword arguments (expects 'tree' for path).
Source code in picle\models.py
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 | |