# -*- coding: utf-8 -*- [docs]class Utils: """ Utility class for common, often re-used functions. """ @staticmethod [docs] def to_mega(size): mega = 1000 * 1000 new_size = round(size / mega, 2) return new_size