pyguymer3.convert_pretty_bytes_to_bytes¶
- pyguymer3.convert_pretty_bytes_to_bytes(prettyString: str, /) float[source]¶
Convert a pretty string of a bytes with some units to a value of bytes
This function reads in a string of a human-readable value of bytes with some units and returns the same value as a float.
- Parameters:
prettyString (str) – the human-readable value of bytes with some units
- Returns:
prettySize – the value of bytes
- Return type:
Notes
Copyright 2017 Thomas Guymer [1]
References
Examples
>>> pyguymer3.convert_pretty_bytes_to_bytes("1.5 KiB") 1536.0