17.1.1.9.1.5. cobra.util.util
¶
General utilities used across the package.
17.1.1.9.1.5.1. Module Contents¶
17.1.1.9.1.5.1.1. Classes¶
Implementation of Perl’s autovivification feature. |
17.1.1.9.1.5.1.2. Functions¶
|
Shorten long string into a small string with ellipsis. |
|
Print dependency information. |
-
cobra.util.util.
format_long_string
(string: str, max_length: int = 50) → str[source]¶ Shorten long string into a small string with ellipsis.
-
class
cobra.util.util.
AutoVivification
[source]¶ Bases:
dict
Implementation of Perl’s autovivification feature.
Notes
For more information, check https://stackoverflow.com/a/652284/280182 .