properties/__init__
Full documentation pages are generated for docstring reference only and may contain symbols imported from other modules. Imported symbols are not distinguished from locally defined symbols and will appear in any module that they are imported into. For better information on where symbols should be imported from, review the sourcecode on the github.
FoSpy._docs.properties
val_rules
module-attribute
val_rules = {
str: "Any text entry",
float: "Any decimal number (positive or negative)",
int: "Any integer (positive or negative)",
bool: "Python `True` or `False`",
list: "A list of values",
tuple: "A tuple of values",
dict: "A dictionary of values",
chemformula.ChemFormula: "A chemical formula recognized by the [`chemformula` package.](https://pypi.org/project/chemformula/)",
}
Summaries of validation rules mapped to validator functions.
Rule lists are formatted as markdown lists before being mapped to a validator.
Possible Validators
SingleBlock subclasses:
A single rule points to the validating class.
ListBlock subclasses:
A single rule points to the SingleBlock class enforced by the ListBlock.
Other Validators:
The validator function is decorated with @_validator_rules(), which specifies a list of rules to be mapped in this dictionary.
_clean_diffs
Source code in FoSpy/_docs/properties/__init__.py
_get_block_module_path
Gets the actual module path for a specific attribute in FoSpy.blocks.
Source code in FoSpy/_docs/properties/__init__.py
_get_header_lines
Source code in FoSpy/_docs/properties/__init__.py
_load_all_validators
Dynamically imports all modules in the validators package to trigger decorators.
Source code in FoSpy/_docs/properties/__init__.py
_md_to_mode
Source code in FoSpy/_docs/properties/__init__.py
_strip_links
Source code in FoSpy/_docs/properties/__init__.py
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 | |
_val_rules_to_txt
Source code in FoSpy/_docs/properties/__init__.py
_validator_rules
Source code in FoSpy/_docs/properties/__init__.py
_wrap_preserving_indent
Source code in FoSpy/_docs/properties/__init__.py
_wrap_url_clickable
Splits a URL into multiple lines matching max_len. Wraps each chunk in an OSC 8 sequence pointing to the FULL URL.
Source code in FoSpy/_docs/properties/__init__.py
build_tables
Source code in FoSpy/_docs/properties/__init__.py
diff_descs
Source code in FoSpy/_docs/properties/__init__.py
find_desc
Source code in FoSpy/_docs/properties/__init__.py
get_descs
get_prop_md
Source code in FoSpy/_docs/properties/__init__.py
get_summary
Source code in FoSpy/_docs/properties/__init__.py
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 | |