script.module.gorrent2http/lib/gorrent2http/__init__.py

17 lines
680 B
Python
Raw Permalink Normal View History

2015-01-11 08:47:17 +03:00
# -*- coding: utf-8 -*-
from collections import namedtuple
SessionStatus = namedtuple('SessionStatus', "name, state, state_str, error, progress, download_rate, upload_rate, "
"total_download, total_upload, num_peers, num_seeds, total_seeds, "
"total_peers")
FileStatus = namedtuple('FileStatus', "name, save_path, url, size, offset, download, progress, index, media_type")
PeerInfo = namedtuple('PeerInfo', "ip, flags, source, up_speed, down_speed, total_upload, total_download, "
"country, client")
2022-03-14 09:10:42 +03:00
from .engine import Engine
from .error import Error