17 lines
680 B
Python
17 lines
680 B
Python
|
# -*- 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")
|
||
|
|
||
|
from .engine import Engine
|
||
|
from .error import Error
|