class package: @staticmethod def _get_encoding() -> str: return str("UTF-8") def __init__(self, content: str) -> None: self.__content = content.encode("UTF-8") @property def size(self) -> int: return len(self.content) @property def content(self) -> bytes: return self.__content def get_part(self, begin: int, end: int) -> None: return self.__content[begin: end]