cobra.util.util
¶
General utilities used across the package.
Module Contents¶
Classes¶
Implementation of Perl's autovivification feature. |
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 .