def from_file(cls, filepath):
        """Alternative constructor to get Torrent object from file.

        :param str filepath:
        :rtype: Torrent
        """
        torrent = cls(Bencode.read_file(filepath))
        torrent._filepath = filepath
        return torrent
def from_file ( cls , filepath ) : torrent = cls ( Bencode . read_file ( filepath ) ) torrent . _filepath = filepath return torrent
Alternative constructor to get Torrent object from file.

        :param str filepath:
        :rtype: Torrent