Package DebTorrent :: Module launchmanycore
[hide private]
[frames] | no frames]

Module launchmanycore

source code

Manage the downloading of multiple torrents in one process.

Classes [hide private]
  SingleDownload
Manage a single torrent download.
  LaunchMany
Manage the collection of all single torrent downloads.
Functions [hide private]
string
fmttime(n)
Formats seconds into a human-readable time.
source code
Variables [hide private]
logging.Logger logger = logging.getLogger('DebTorrent.launchmanycore')
the logger to send all log messages to for this module

Imports: PSYCO, psyco, download_bt1.BT1Download, RawServer.RawServer, RateLimiter.RateLimiter, ServerPortHandler.MultiHandler, random.seed, socket.error, threading.Event, sys.argv, sys.exit, sys, os, binascii, clock.clock, __init__.createPeerID, __init__.mapbase64, __init__.version, cStringIO.StringIO, logging, BT1.AptListener.AptListener, HTTPHandler.HTTPHandler


Function Details [hide private]

fmttime(n)

source code 

Formats seconds into a human-readable time.

Formats a given number of seconds into a human-readable time appropriate for display to the user.
Parameters:
  • n (int) - the number of seconds
Returns: string
a displayable representation of the number of seconds