toil.lib.humanize¶
Attributes¶
Functions¶
|
Return a binary value as a human readable string with units. |
|
Given a string representation of some memory (i.e. '1024 Mib'), return the |
|
Convert n bytes into a human readable string. |
|
Attempts to guess the string format based on default symbols |
Module Contents¶
- toil.lib.humanize.b2h(n)¶
Return a binary value as a human readable string with units.
- Parameters:
n (SupportsInt)
- Return type:
- toil.lib.humanize.h2b(string)¶
Given a string representation of some memory (i.e. ‘1024 Mib’), return the integer number of bytes.
- toil.lib.humanize.logger¶